Merge pull request #184 from camandel/fix_change_visibility

cmd: fix project visibility switch
This commit is contained in:
Simone Gotti 2019-11-21 15:22:05 +01:00 committed by GitHub
commit c55f1f2e16
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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")