Fix Heat condition for RHEL registration yum update
authorJames Slagle <jslagle@redhat.com>
Thu, 10 Aug 2017 17:42:31 +0000 (13:42 -0400)
committerJames Slagle <jslagle@redhat.com>
Mon, 14 Aug 2017 12:47:45 +0000 (08:47 -0400)
There were 2 problems with this condition making the
rhel-registration.yal template broken:

"conditions" should be "condition"

The condition should refer to just a condition name defined in the
"conditions:" section of the template.

Change-Id: I14d5c72cf86423808e81f1d8406098d5fd635e66
Closes-Bug: #1709916

extraconfig/pre_deploy/rhel-registration/rhel-registration.yaml
releasenotes/notes/fix-heat-condition-for-rhel-reg-311a3dce76cc0ec1.yaml [new file with mode: 0644]

index fb0d169..8b2b230 100644 (file)
@@ -72,6 +72,10 @@ conditions:
     equals:
       - {get_param: deployment_actions}
       - []
+  update_requested:
+    equals:
+      - {get_param: UpdateOnRHELRegistration}
+      - true
 
 resources:
 
@@ -180,8 +184,7 @@ resources:
   UpdateDeploymentAfterRHELRegistration:
     type: OS::Heat::SoftwareDeployment
     depends_on: RHELRegistrationDeployment
-    conditions:
-      update_requested: {get_param: UpdateOnRHELRegistration}
+    condition: update_requested
     properties:
       name: UpdateDeploymentAfterRHELRegistration
       config: {get_resource: YumUpdateConfigurationAfterRHELRegistration}
diff --git a/releasenotes/notes/fix-heat-condition-for-rhel-reg-311a3dce76cc0ec1.yaml b/releasenotes/notes/fix-heat-condition-for-rhel-reg-311a3dce76cc0ec1.yaml
new file mode 100644 (file)
index 0000000..e417f5f
--- /dev/null
@@ -0,0 +1,9 @@
+---
+fixes:
+  - |
+    Fix Heat condition for RHEL registration yum update
+    There were 2 problems with this condition making the
+    rhel-registration.yaml template broken: "conditions" should be "condition"
+    and the condition should refer to just a condition name defined in the
+    "conditions:" section of the template.  See
+    https://bugs.launchpad.net/tripleo/+bug/1709916