cmd: fix project visibility switch
This commit is contained in:
parent
074f346c78
commit
42e302df50
|
@ -75,7 +75,8 @@ func projectUpdate(cmd *cobra.Command, args []string) error {
|
||||||
if !IsValidVisibility(projectUpdateOpts.visibility) {
|
if !IsValidVisibility(projectUpdateOpts.visibility) {
|
||||||
return errors.Errorf("invalid visibility %q", projectUpdateOpts.visibility)
|
return errors.Errorf("invalid visibility %q", projectUpdateOpts.visibility)
|
||||||
}
|
}
|
||||||
req.Name = &projectUpdateOpts.visibility
|
visibility := gwapitypes.Visibility(projectUpdateOpts.visibility)
|
||||||
|
req.Visibility = &visibility
|
||||||
}
|
}
|
||||||
|
|
||||||
log.Infof("updating project")
|
log.Infof("updating project")
|
||||||
|
|
Loading…
Reference in New Issue