-
Notifications
You must be signed in to change notification settings - Fork 77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Vdc Vm compute policies functionality #334
Conversation
Merge branch 'master' of github.com:vmware/go-vcloud-director
Merge branch 'master' of github.com:vmware/go-vcloud-director
# Conflicts: # types/v56/types.go
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pass one
govcd/vdcComputePolicy.go
Outdated
util.Logger.Printf("[TRACE] Set Compute Policies started") | ||
|
||
if !vdc.client.IsSysAdmin { | ||
return nil, fmt.Errorf("functionality requires system administrator privileges") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit, suggesting to capitalize:
return nil, fmt.Errorf("functionality requires system administrator privileges") | |
return nil, fmt.Errorf("functionality requires System Administrator privileges") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
changed in all project files
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing space after the changes - System Administratorprivileges
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
…_sizing_policies # Conflicts: # CHANGELOG.md
Merge branch 'master' of github.com:vmware/go-vcloud-director
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Functionality needed for VM sizing policy.
New functionality:
VDC compute policy can be created in 32 version but getting doesn't work well on 32 version. Also doesn't have UI for that. So overall limitation is 33 API version (All functionality works in from VCD 10.0+)