use . instead of source.
Code conventions: Use “.” to source script files When you have to source a script file, for example , a credentials file to gain access to user-only or admin-only CLI commands, use . instead of source. See more: http://docs.openstack.org/contributor-guide/writing-style/code-conventions Change-Id: I1788a2e5f1d9e067e2411bb159316ca7990fe46f
This commit is contained in:
parent
d9f6b258f7
commit
cd1c3474ac
|
@ -6,7 +6,7 @@ DIR="$(cd $(dirname "$0") && pwd)"
|
|||
RULES_DIR="${DIR}/rules"
|
||||
|
||||
cd /opt/stack/congress
|
||||
source ~/devstack/openrc admin admin
|
||||
. ~/devstack/openrc admin admin
|
||||
|
||||
echo
|
||||
echo "Creating datasource config"
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
cd /opt/stack/congress
|
||||
source ~/devstack/openrc admin demo
|
||||
. ~/devstack/openrc admin demo
|
||||
|
||||
echo "Creating datasource murano: user=admin, tenant=demo"
|
||||
openstack congress datasource create murano "murano" \
|
||||
|
@ -108,4 +108,4 @@ openstack congress policy simulate murano_system 'predeploy_error(env_id)' '
|
|||
murano:parent_types+("instance_uuid", "io.murano.Object")
|
||||
murano:parent_types+("instance_uuid", "instance_type")
|
||||
|
||||
murano:properties+("instance_uuid", "flavor", "m1.large")' action
|
||||
murano:properties+("instance_uuid", "flavor", "m1.large")' action
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
# The following OpenStack environment variables must set first:
|
||||
# OS_USERNAME, OS_PASSWORD, OS_PROJECT_NAME, OS_TENANT_NAME, OS_AUTH_URL
|
||||
# For example by running (under a devstack setup)
|
||||
# $ source devstack/openrc admin admin
|
||||
# $ . devstack/openrc admin admin
|
||||
#############################################################################
|
||||
|
||||
UUID=`openstack congress datasource create doctor doctor -f value | sed -n '5p'`
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
# The following OpenStack environment variables must set first:
|
||||
# OS_USERNAME, OS_PASSWORD, OS_PROJECT_NAME, OS_TENANT_NAME, OS_AUTH_URL
|
||||
# For example by running (under a devstack setup)
|
||||
# $ source devstack/openrc admin admin
|
||||
# $ . devstack/openrc admin admin
|
||||
#############################################################################
|
||||
|
||||
openstack congress version list
|
||||
|
|
Loading…
Reference in New Issue