Minor fixes for backupninja backup pipeline
Related: PROD-32740
Change-Id: I2d39eaf35a8bfe2fbe4373b82313d7cad26fa189
diff --git a/backupninja-backup-pipeline.groovy b/backupninja-backup-pipeline.groovy
index 5ec3457..1af5e5b 100644
--- a/backupninja-backup-pipeline.groovy
+++ b/backupninja-backup-pipeline.groovy
@@ -11,6 +11,7 @@
logBackupFailure = []
def checkBackupninjaLog(output, backupName='', terminateOnFailure=true) {
+ def common = new com.mirantis.mk.Common()
def outputPattern = java.util.regex.Pattern.compile("\\d+")
def outputMatcher = outputPattern.matcher(output)
if (outputMatcher.find()) {
@@ -61,7 +62,7 @@
if (backupDogtag) {
try {
def dogtagPillar = salt.getPillar(pepperEnv, "I@salt:master", "dogtag:server")
- if (masterPillar['return'].isEmpty()) {
+ if (dogtagPillar['return'].isEmpty()) {
throw new Exception("Problem with dogtag pillar on I@dogtag:server node.")
}
}