diff options
author | 2019-03-11 14:05:11 +0100 | |
---|---|---|
committer | 2019-03-11 14:05:11 +0100 | |
commit | aa331d52c53a519ebc2202b1faf619f8f05d2ab6 (patch) | |
tree | 27872b08983585efd20ea5313a9bb372881334ec | |
parent | bccd5722e8165d9f7293ffe9d414d28d44f1abf3 (diff) |
lava-labs-prepare: Fix lavacli auth add error
lavacli is returning an error if the config file for adding identities does
not exist.
Create the file before using `lavacli auth add`
Change-Id: I3928355055299ddbdd1d269d74a762a563577fb8
Signed-off-by: Loys Ollivier <lollivier@baylibre.com>
-rw-r--r-- | jjb/common/include-agl-lava-labs-prepare.sh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/jjb/common/include-agl-lava-labs-prepare.sh b/jjb/common/include-agl-lava-labs-prepare.sh index 893c859f..2335b0a1 100644 --- a/jjb/common/include-agl-lava-labs-prepare.sh +++ b/jjb/common/include-agl-lava-labs-prepare.sh @@ -70,6 +70,7 @@ for lab in "${!labs[@]}"; do rm -f $token_file # lavacli auth using token + mkdir -p ~/.config && touch ~/.config/lavacli.yaml lavacli identities add --token ${token} --uri $full_url --username $user $lab # lavacli: Find the LAVA lab that has the device available to run the job |