cmd: fix project visibility switch

This commit is contained in:
Carlo Mandelli 2019-11-21 14:44:50 +01:00
parent 074f346c78
commit 42e302df50
1 changed files with 2 additions and 1 deletions

View File

@ -75,7 +75,8 @@ func projectUpdate(cmd *cobra.Command, args []string) error {
if !IsValidVisibility(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")