Debugging for getIam token problem
Change-Id: I8f3eff3e46f9b871a3466d1df4f66ea2056745d6
diff --git a/vars/pgrep_port_forward.groovy b/vars/pgrep_port_forward.groovy
index de1bcb1..e0e4dd4 100644
--- a/vars/pgrep_port_forward.groovy
+++ b/vars/pgrep_port_forward.groovy
@@ -47,6 +47,7 @@
}
// -----------------------------------------------------------------------
+// Intent: Display a process by name
// -----------------------------------------------------------------------
Boolean process(String proc, Map args) {
Boolean ans = true
@@ -99,6 +100,7 @@
}
catch (Exception err) { // groovylint-disable-line CatchException
ans = false
+ String iam = getIam('main')
println("** ${iam}: EXCEPTION ${err}")
throw err
}
diff --git a/vars/pkill_port_forward.groovy b/vars/pkill_port_forward.groovy
index 286e341..2de9759 100644
--- a/vars/pkill_port_forward.groovy
+++ b/vars/pkill_port_forward.groovy
@@ -123,7 +123,7 @@
}
catch (Exception err) { // groovylint-disable-line CatchException
ans = false
- String iam = getIam(name)
+ String iam = getIam('main')
println("** ${iam}: EXCEPTION ${err}")
throw err
}