-
Notifications
You must be signed in to change notification settings - Fork 822
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 check of availability of VM role size in location #26
Conversation
|
||
func GetLocation(location string) (*Location, error) { | ||
if len(location) == 0 { | ||
return nil, fmt.Errorf(azure.ParamNotSpecifiedError, "location") |
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.
if we're always formatting this azure.ParamNotSpecifiedError string, it shouldn't probably be exposed. can you please change while you're at it, or maybe in a separate PR?
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.
👍 will do on a separate PR
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.
We have a few options on this - it's used throughout the codebase hence the original decision (I assume) to export it. We could either duplicate wherever necessary and make it internal or leave it as is. Any preference?
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.
See #28 for an implementation of this.
Add check of availability of VM role size in location
* Adding a "Getting Started" section to the README. * Fixing formating issues. * Responding to review feedback.
* Adding a "Getting Started" section to the README. * Fixing formating issues. * Responding to review feedback.
* Adding a "Getting Started" section to the README. * Fixing formating issues. * Responding to review feedback.
Merge pull request #26 from leonardbf/NFSAAS-2436-R4-corrections NFSAAS-2436 corrections to R4 standard
… swagger for GA (#4861) * Generated from 3c2d64eec013f8a6a4666a83a2e3daf9fd44b821 Merge pull request #25 from leonardbf/NFSAAS-2436-R4-corrections NFSAAS-2436 corrections to R4 standard * Generated from f897f2476e09958144c8dd8f3db8699ee6636763 Merge pull request #26 from leonardbf/NFSAAS-2436-R4-corrections NFSAAS-2436 corrections to R4 standard * Generated from 81ff9dd1f123face9e3dae304a8971234c6a5542 Merge pull request #28 from leonardbf/NFSAAS-2436-R4-corrections NFSAAS-2436 corrections to R4 standard
… swagger for GA (#4861) * Generated from 3c2d64eec013f8a6a4666a83a2e3daf9fd44b821 Merge pull request #25 from leonardbf/NFSAAS-2436-R4-corrections NFSAAS-2436 corrections to R4 standard * Generated from f897f2476e09958144c8dd8f3db8699ee6636763 Merge pull request #26 from leonardbf/NFSAAS-2436-R4-corrections NFSAAS-2436 corrections to R4 standard * Generated from 81ff9dd1f123face9e3dae304a8971234c6a5542 Merge pull request #28 from leonardbf/NFSAAS-2436-R4-corrections NFSAAS-2436 corrections to R4 standard
Upgrading version of Azure-SDK-for-Go
There was previously nothing to prevent creation of a virtual machine of an instance size which was unavailable in a given location - instead the operation completed and getting the status returned a
ResourceNotFound
error. This pull request makes the following changes:GetLocation
function to thelocationClient
in order to get access to the structure without iterating through the list returned fromGetLocationList
in multiple spots.verifyInstanceSizeAvailableInLocation
to thevmClient
and call this in place of verification against the global list.