Merge pull request #184 from camandel/fix_change_visibility
cmd: fix project visibility switch
This commit is contained in:
commit
c55f1f2e16
|
@ -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