From 4296c9371ebf1752489aa4002a4f81e66c2157c4 Mon Sep 17 00:00:00 2001 From: chao liu Date: Sat, 26 Aug 2017 17:36:24 -0700 Subject: [PATCH] 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: Ifc19ac8bf788a137436e7b957798583bdbbeef79 --- doc/source/contributor/dev-quickstart.rst | 14 +++++++------- doc/source/contributor/ironic-boot-from-volume.rst | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/doc/source/contributor/dev-quickstart.rst b/doc/source/contributor/dev-quickstart.rst index c62133e000..bf5bf985d0 100644 --- a/doc/source/contributor/dev-quickstart.rst +++ b/doc/source/contributor/dev-quickstart.rst @@ -191,7 +191,7 @@ Step 1: Create a Python virtualenv #. Activate the virtual environment:: - source .tox/venv/bin/activate + . .tox/venv/bin/activate #. Install the ironic client:: @@ -313,13 +313,13 @@ daemons; you can observe their output and stop them with Ctrl-C at any time. #. Start the API service in debug mode and watch its output:: cd ~/ironic - source .tox/venv/bin/activate + . .tox/venv/bin/activate ironic-api -d --config-file etc/ironic/ironic.conf.local #. Start the Conductor service in debug mode and watch its output:: cd ~/ironic - source .tox/venv/bin/activate + . .tox/venv/bin/activate ironic-conductor -d --config-file etc/ironic/ironic.conf.local Step 4: Interact with the running services @@ -387,13 +387,13 @@ help with that, but are not an exhaustive troubleshooting guide:: # reinstall ironic modules cd ~/ironic - source .tox/venv/bin/activate + . .tox/venv/bin/activate pip uninstall ironic pip install -e . # install and upgrade ironic and all python dependencies cd ~/ironic - source .tox/venv/bin/activate + . .tox/venv/bin/activate pip install -U -e . @@ -567,7 +567,7 @@ Run stack.sh:: Source credentials, create a key, and spawn an instance as the ``demo`` user:: - source ~/devstack/openrc + . ~/devstack/openrc # query the image id of the default cirros image image=$(openstack image show $DEFAULT_IMAGE_NAME -f value -c id) @@ -730,7 +730,7 @@ commands to build the documentation set: - On your local machine:: # activate your development virtualenv - source .tox/venv/bin/activate + . .tox/venv/bin/activate # build the docs tox -edocs diff --git a/doc/source/contributor/ironic-boot-from-volume.rst b/doc/source/contributor/ironic-boot-from-volume.rst index b7c3951101..22037a98b5 100644 --- a/doc/source/contributor/ironic-boot-from-volume.rst +++ b/doc/source/contributor/ironic-boot-from-volume.rst @@ -98,7 +98,7 @@ description for DevStack is at :ref:`deploy_devstack`. After the environment is built, you can create a volume with cinder and request an instance with the volume to nova:: - source ~/devstack/openrc + . ~/devstack/openrc # query the image id of the default cirros image image=$(openstack image show $DEFAULT_IMAGE_NAME -f value -c id)