)]}'
{"hot/software-config/elements/heat-config/bin/heat-config-rebuild-deployed":[{"author":{"_account_id":4571,"name":"Steve Baker","email":"sbaker@redhat.com","username":"steve-stevebaker"},"change_message_id":"21146c788bc2f16270827960de659b5a307ef77f","unresolved":false,"context_lines":[{"line_number":19,"context_line":"echo \"Found $num_deployments deployments.\""},{"line_number":20,"context_line":"let \"num_deployments -\u003d 1\""},{"line_number":21,"context_line":""},{"line_number":22,"context_line":"deployed_dir\u003d/var/run/heat-config/deployed"},{"line_number":23,"context_line":"mkdir -p $deployed_dir"},{"line_number":24,"context_line":""},{"line_number":25,"context_line":"for idx in $(seq 0 $num_deployments); do"}],"source_content_type":"application/x-shellscript","patch_set":2,"id":"9a8ffd7b_da735514","line":22,"updated":"2015-12-01 02:36:01.000000000","message":"I think a bit of logic is needed here to determine whether to use /var/run/heat-config/deployed or /var/lib/heat-config/deployed. Otherwise if a run has already been done with the updated 55-heat-config and heat-config-rebuild-deployed is subsequently run then we could end up with 2 deployed directories with inconsistent contents.\n\nI think this would be enough:\n\nif /var/lib/heat-config/deployed exists\n    deployed_dir\u003d/var/lib/heat-config/deployed\nelse\n    deployed_dir\u003d/var/run/heat-config/deployed","commit_id":"eeb697a4cd6660008fa0b12ae3ad07c0fe5df171"}]}
