Fix to use "." to source script files
Adhering to coding conventions. Refer to ``Code conventions`` at https://docs.openstack.org/contributor-guide/ for details. Change-Id: I54b2d7d84bdd651fb96a62b3af3244c6ab484059
This commit is contained in:
parent
05eb3727d1
commit
9819720f78
@ -15,7 +15,7 @@ environment variables:
|
|||||||
For your ease of use, ``env-vars`` can be sourced to allow the CLI to connect
|
For your ease of use, ``env-vars`` can be sourced to allow the CLI to connect
|
||||||
to a local ironic installation operating in noauth mode. Run e.g.::
|
to a local ironic installation operating in noauth mode. Run e.g.::
|
||||||
|
|
||||||
source env-vars
|
. env-vars
|
||||||
ironic node-list
|
ironic node-list
|
||||||
+------+------+---------------+-------------+--------------------+-------------+
|
+------+------+---------------+-------------+--------------------+-------------+
|
||||||
| UUID | Name | Instance UUID | Power State | Provisioning State | Maintenance |
|
| UUID | Name | Instance UUID | Power State | Provisioning State | Maintenance |
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
set -eu
|
set -eu
|
||||||
|
|
||||||
source $(dirname $0)/install-deps.sh
|
. $(dirname $0)/install-deps.sh
|
||||||
# NOTE(pas-ha) the above exports some useful variables like
|
# NOTE(pas-ha) the above exports some useful variables like
|
||||||
# $PYTHON , $PIP and $VENV depending on venv install or not
|
# $PYTHON , $PIP and $VENV depending on venv install or not
|
||||||
|
|
||||||
|
@ -129,7 +129,7 @@ if [ -n "${VENV-}" ]; then
|
|||||||
# Note(cinerama): activate is not compatible with "set -u";
|
# Note(cinerama): activate is not compatible with "set -u";
|
||||||
# disable it just for this line.
|
# disable it just for this line.
|
||||||
set +u
|
set +u
|
||||||
source ${VENV}/bin/activate
|
. ${VENV}/bin/activate
|
||||||
set -u
|
set -u
|
||||||
VIRTUAL_ENV=${VENV}
|
VIRTUAL_ENV=${VENV}
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user