Skip to content

Commit 38a6fdb

Browse files
author
OpenShift Bot
authored
Merge pull request #9889 from kargakis/bug-1356530
Merged by openshift-bot
2 parents 9db7cf8 + 4b3ec3a commit 38a6fdb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/cmd/cli/cmd/rollback.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ func (o *RollbackOptions) Run() error {
234234
},
235235
}
236236
newConfig, err := o.oc.DeploymentConfigs(o.Namespace).Rollback(rollback)
237-
if kerrors.IsNotFound(err) {
237+
if kerrors.IsNotFound(err) || kerrors.IsForbidden(err) {
238238
// Fallback to the old path for new clients talking to old servers.
239239
newConfig, err = o.oc.DeploymentConfigs(o.Namespace).RollbackDeprecated(rollback)
240240
}

0 commit comments

Comments
 (0)