Fix duplicate definition of same variable
Change-Id: Id064b3b204f600ea8b27b22a0894ce590a4cf81c
diff --git a/cicd-lab-pipeline.groovy b/cicd-lab-pipeline.groovy
index 88f53d9..b63c58a 100644
--- a/cicd-lab-pipeline.groovy
+++ b/cicd-lab-pipeline.groovy
@@ -223,8 +223,8 @@
//
def adminUser
def authorizedKeysFile
- def out = salt.cmdRun(saltMaster, 'I@salt:master', "[ -d /home/ubuntu ] && echo 'ubuntu user exists'")
- if (out =~ /ubuntu user exists/) {
+ def adminUserCmdOut = salt.cmdRun(saltMaster, 'I@salt:master', "[ -d /home/ubuntu ] && echo 'ubuntu user exists'")
+ if (adminUserCmdOut =~ /ubuntu user exists/) {
adminUser = "ubuntu"
authorizedKeysFile = "/home/ubuntu/.ssh/authorized_keys"
} else {