Rename juju run --service flag to --application 39/38939/1
authorMartin Kulhavy <martin.kulhavy@nokia.com>
Tue, 8 Aug 2017 20:20:21 +0000 (23:20 +0300)
committerMartin Kulhavy <martin.kulhavy@nokia.com>
Tue, 8 Aug 2017 20:20:21 +0000 (23:20 +0300)
This flag has been renamed in (probably) Juju 2.0.
For reference, compare documentation for `juju run` command in
https://jujucharms.com/docs/1.25/commands and
https://jujucharms.com/docs/2.0/commands

The `--service` flag causes the `openstack.sh` to fail and exit,
skipping important functionality.

Change-Id: Ia5b3f5c29622de2caabee9832aa6920932c43656
Signed-off-by: Martin Kulhavy <martin.kulhavy@nokia.com>
ci/openstack.sh

index 3a9a7eb..ed082b9 100755 (executable)
@@ -170,7 +170,7 @@ if [ "$API_FQDN" != "None" ]; then
                     fi"
 
     # remove this enhancement for heat that does not manage endpoints
-    juju run --service=heat "cp /etc/hosts /tmp/hosts ; \
+    juju run --application=heat "cp /etc/hosts /tmp/hosts ; \
                              grep -v $API_FQDN /tmp/hosts > /etc/hosts"
 
     #change in jumphost as well as below commands will run on jumphost