]> review.fuel-infra Code Review - openstack-build/heat-build.git/commitdiff
heat engine : Loadbalancer template watch reference should be Ref
authorSteven Hardy <shardy@redhat.com>
Wed, 6 Mar 2013 14:14:53 +0000 (14:14 +0000)
committerSteven Hardy <shardy@redhat.com>
Wed, 6 Mar 2013 14:14:53 +0000 (14:14 +0000)
Replace hard-coded reference to latency_watcher with Ref, otherwise
the name is not fully qualified for the nested stack and the engine
fails to lookup the watchrule

ref bug 1133510

Change-Id: If0352726ee89e2c8b78beb9436be36b811f1e1cd

heat/engine/resources/loadbalancer.py

index d4c41d275ab4636227dbc3c8b6e4001dc1b0079b..719fe89591f6492cc96b637ff0d98977d8e8154b 100644 (file)
@@ -129,7 +129,7 @@ lb_template = r'''
                 "\n",
                 "* * * * * /opt/aws/bin/cfn-hup -f\n",
                 "* * * * * /opt/aws/bin/cfn-push-stats ",
-                " --watch latency_watcher --haproxy\n"
+                " --watch ", { "Ref" : "latency_watcher" }, " --haproxy\n"
                 ]]},
                 "mode"    : "000600",
                 "owner"   : "root",