Add dib-lint tags to sudo calls
In [1] some new safe_sudo checks were added, which lead to errors in the project-config elements. We add tags to ignore these errors for now. [1] I161a5aea1d29dcdc7236f70d372c53246ec73749 Change-Id: If3ff10b8fbf20a8327895f439b955f9941818668
This commit is contained in:
@@ -48,7 +48,7 @@ function get_devstack_from_cache {
|
|||||||
|
|
||||||
local REPO_DEST=$TMP_MOUNT_PATH$REPOPATH
|
local REPO_DEST=$TMP_MOUNT_PATH$REPOPATH
|
||||||
local REPO_SUB_DIRECTORY=$(dirname $REPO_DEST)
|
local REPO_SUB_DIRECTORY=$(dirname $REPO_DEST)
|
||||||
sudo mkdir -p $REPO_SUB_DIRECTORY
|
sudo mkdir -p $REPO_SUB_DIRECTORY # dib-lint: safe_sudo
|
||||||
|
|
||||||
# build the same cache name as source-repositories
|
# build the same cache name as source-repositories
|
||||||
CACHE_NAME=$(echo "${REPOTYPE}_${REPOLOCATION}" | sha1sum | awk '{ print $1 }' )
|
CACHE_NAME=$(echo "${REPOTYPE}_${REPOLOCATION}" | sha1sum | awk '{ print $1 }' )
|
||||||
@@ -78,7 +78,7 @@ function get_devstack_from_cache {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# clone the updated repo to our destination
|
# clone the updated repo to our destination
|
||||||
sudo git clone $CACHE_PATH $REPO_DEST
|
sudo git clone $CACHE_PATH $REPO_DEST # dib-lint: safe_sudo
|
||||||
}
|
}
|
||||||
|
|
||||||
# in case source-repositories hasn't run yet, make the cache
|
# in case source-repositories hasn't run yet, make the cache
|
||||||
|
Reference in New Issue
Block a user