#626 alt: fix cloud amis
Merged 7 years ago by pfrields. Opened 7 years ago by dustymabe.
dustymabe/fedora-websites dusty-fix-cloud-ami-ids  into  master

@@ -75,26 +75,12 @@ 

          # The F22 released AMIs uploads didn't appear to go through fedimg, so

          # we can't use this scheme for them.  Stuff for F23 should all go that

          # route though, so we can hopefully switch over soon.

-         ("Fedora-Cloud-Base-{curr_cloud_AMI_id}-{atomic_composedate}.x86_64", {

+         ("Fedora-Cloud-Base-{curr_cloud_AMI_id}-{RC_gold}.x86_64", {

              'HVM_base_AMI':     lambda e: e.get('virt_type') == 'hvm' and e.get('vol_type') == 'standard',

              'GP2_HVM_base_AMI': lambda e: e.get('virt_type') == 'hvm' and e.get('vol_type') == 'gp2',

              'PV_base_AMI':      lambda e: e.get('virt_type') == 'paravirtual' and e.get('vol_type') == 'standard',

              'GP2_PV_base_AMI':  lambda e: e.get('virt_type') == 'paravirtual' and e.get('vol_type') == 'gp2',

          }),

-         #("Fedora-Atomic-{curr_cloud_AMI_id}-{atomic_composedate}.x86_64", {

-         #   'HVM_atomic_AMI':     lambda e: e.get('virt_type') == 'hvm' and e.get('vol_type') == 'standard',

-         #   'GP2_HVM_atomic_AMI': lambda e: e.get('virt_type') == 'hvm' and e.get('vol_type') == 'gp2',

-         #}),

-         #("Fedora-Cloud-Base-{next_cloud_AMI_id}_{curr_cloud_AMI_state}-{RC_pre_gold}.x86_64", {

-         #    'pre_HVM_base_AMI':     lambda e: e.get('virt_type') == 'hvm' and e.get('vol_type') == 'standard',

-         #   'pre_GP2_HVM_base_AMI': lambda e: e.get('virt_type') == 'hvm' and e.get('vol_type') == 'gp2',

-         #    'pre_PV_base_AMI':      lambda e: e.get('virt_type') == 'paravirtual' and e.get('vol_type') == 'standard',

-         #    'pre_GP2_PV_base_AMI':  lambda e: e.get('virt_type') == 'paravirtual' and e.get('vol_type') == 'gp2',

-         #}),

-         #("Fedora-Cloud-Atomic-{next_cloud_AMI_id}_{curr_cloud_AMI_state}-{manual_pre_cloud_AMI_atomic_composedate}.x86_64", {

-         #    'pre_HVM_atomic_AMI':     lambda e: e.get('virt_type') == 'hvm' and e.get('vol_type') == 'standard',

-         #    'pre_GP2_HVM_atomic_AMI': lambda e: e.get('virt_type') == 'hvm' and e.get('vol_type') == 'gp2',

-         #}),

      ]

  

      for template, buckets in templates:

It was not pulling the RC_gold ami ids from fedmsg.

Also clean up some commented out code.

Pull-Request has been merged by pfrields

7 years ago
Metadata