Skip to content

Commit

Permalink
Render all output arts (#352)
Browse files Browse the repository at this point in the history
  • Loading branch information
DeepikaDixit authored and mergify[bot] committed Oct 11, 2019
1 parent ea12d81 commit eb3762d
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion pkg/function/describe_backups.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,13 +92,21 @@ func describeBackupsPodFunc(cli kubernetes.Interface, tp param.TemplateParams, n
break
case strings.Contains(err.Error(), restic.PasswordIncorrect):
return map[string]interface{}{
DescribeBackupsSnapshotIDs: nil,
DescribeBackupsFileCount: nil,
DescribeBackupsSize: nil,
DescribeBackupsPasswordIncorrect: "true",
DescribeBackupsRepoDoesNotExist: nil,
},
nil

case strings.Contains(err.Error(), restic.RepoDoesNotExist):
return map[string]interface{}{
DescribeBackupsRepoDoesNotExist: "true",
DescribeBackupsSnapshotIDs: nil,
DescribeBackupsFileCount: nil,
DescribeBackupsSize: nil,
DescribeBackupsPasswordIncorrect: nil,
DescribeBackupsRepoDoesNotExist: "false",
},
nil
default:
Expand Down

0 comments on commit eb3762d

Please sign in to comment.