Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tools/build-rpms: fix ec2 client initialisation #4361

Merged
merged 1 commit into from
Sep 11, 2024

Commits on Sep 11, 2024

  1. tools/build-rpms: fix ec2 client initialisation

    Fixes:
    ```
    Error: Create EC2 instances  failed: 'ec2.ServiceResource' object has no attribute 'describe_images'
    Traceback (most recent call last):
      File "/osbuild-composer/tools/build-rpms.py", line 218, in <module>
        stage_generate_rpms(cleanup_actions, args)
      File "/osbuild-composer/tools/build-rpms.py", line 175, in stage_generate_rpms
        create_ec2_instances, cleanup_actions, args, keyname)
      File "/osbuild-composer/tools/build-rpms.py", line 66, in stage
        ret = fun(*args)
      File "/osbuild-composer/tools/build-rpms.py", line 109, in create_ec2_instances
        img = ec2.describe_images(ImageIds=[arch_info[a]["ImageId"]])
    AttributeError: 'ec2.ServiceResource' object has no attribute 'describe_images'
    ```
    croissanne committed Sep 11, 2024
    Configuration menu
    Copy the full SHA
    f15b378 View commit details
    Browse the repository at this point in the history