-
Notifications
You must be signed in to change notification settings - Fork 452
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
Make sure we return the right version when autoscaling v2 is found #1075
Make sure we return the right version when autoscaling v2 is found #1075
Conversation
Signed-off-by: Kevin Earls <[email protected]>
@@ -117,10 +117,10 @@ func (v AutoscalingVersion) String() string { | |||
return "unknown" | |||
} | |||
|
|||
func toAutoscalingVersion(version string) AutoscalingVersion { | |||
func ToAutoScalingVersion(version string) AutoscalingVersion { |
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.
any reason why the function is public now?
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.
So it can be accessed by the test, as the test is in a different package
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.
It's a bit unfortunate/unnecessary to have the test in a different package in this case. But it was done like that from before so I will approve the PR.
@@ -117,10 +117,10 @@ func (v AutoscalingVersion) String() string { | |||
return "unknown" | |||
} | |||
|
|||
func toAutoscalingVersion(version string) AutoscalingVersion { | |||
func ToAutoScalingVersion(version string) AutoscalingVersion { |
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.
It's a bit unfortunate/unnecessary to have the test in a different package in this case. But it was done like that from before so I will approve the PR.
…pen-telemetry#1075) Signed-off-by: Kevin Earls <[email protected]> Signed-off-by: Kevin Earls <[email protected]>
Signed-off-by: Kevin Earls [email protected]