Skip to content

Commit 1a752c7

Browse files
authored
Merge pull request #7 from inextensodigital/fix-deployment-status-state-validation
fix: add success as a valid deployment status value
2 parents 7af8011 + 501f9f3 commit 1a752c7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cmd/deployment_status.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ var deploymentStatusGetCmd = &cobra.Command{
8888
func isValidState(state string) error {
8989
switch state {
9090
case
91+
"success",
9192
"error",
9293
"failure",
9394
"inactive",
@@ -97,7 +98,7 @@ func isValidState(state string) error {
9798
return nil
9899
}
99100

100-
return errors.New("invalid state: should be one of error, failure, inactive, in_progress, queued or pending")
101+
return errors.New("invalid state: should be one of success, error, failure, inactive, in_progress, queued or pending")
101102
}
102103

103104
var deploymentStatusCreateCmd = &cobra.Command{

0 commit comments

Comments
 (0)