From 0b893af5301b48ac39705c1cdced167fec14a5e3 Mon Sep 17 00:00:00 2001
From: lingyongxu <lyxu@fiberhome.com>
Date: Mon, 28 Aug 2017 17:53:54 +0800
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: Id1e3b92f9ee29ad8b489cfda2d8547c7eecc0600
---
 tools/setup_Debian.sh | 2 +-
 tools/setup_gate.sh   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/tools/setup_Debian.sh b/tools/setup_Debian.sh
index 10d08f0071..5439c3955f 100755
--- a/tools/setup_Debian.sh
+++ b/tools/setup_Debian.sh
@@ -51,7 +51,7 @@ function setup_disk {
 # (SamYaple)TODO: Remove the path overriding
 export PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
 
-source /etc/lsb-release
+. /etc/lsb-release
 
 # Setup Docker repo and add signing key
 echo "deb http://apt.dockerproject.org/repo ubuntu-${DISTRIB_CODENAME} main" | sudo tee /etc/apt/sources.list.d/docker.list
diff --git a/tools/setup_gate.sh b/tools/setup_gate.sh
index f0758fab0a..57a2594005 100755
--- a/tools/setup_gate.sh
+++ b/tools/setup_gate.sh
@@ -6,7 +6,7 @@ set -o errexit
 # Enable unbuffered output for Ansible in Jenkins.
 export PYTHONUNBUFFERED=1
 
-source /etc/nodepool/provider
+. /etc/nodepool/provider
 
 NODEPOOL_MIRROR_HOST=${NODEPOOL_MIRROR_HOST:-mirror.$NODEPOOL_REGION.$NODEPOOL_CLOUD.openstack.org}
 NODEPOOL_MIRROR_HOST=$(echo $NODEPOOL_MIRROR_HOST|tr '[:upper:]' '[:lower:]')