We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
if properties attribute for any azure resource has float values than that attribute is being ignored while creating instance methods
Executing the below in context of an Azure resource,
response = { properties: { scalingFactor: 1.0 } } resource.create_resource_methods(response)
expected:
resource.properties.scalingFactor => 1.0
actual:
resource.properties.scalingFactor => NullResponse
allow create_resource_methods to support Float and Bignum types long term support is to include all Numeric types
create_resource_methods
Float
Bignum
Numeric
snippet with issue
case value.class.to_s when 'String', 'Integer', 'TrueClass', 'FalseClass', 'Fixnum', 'Time'
temporary solution:
case value.class.to_s when 'String', 'Integer', 'TrueClass', 'FalseClass', 'Fixnum', 'Time', 'Bignum', 'Float'
Long term solution:
case value when String, Numeric, TrueClass, FalseClass, Time
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Describe the problem
if properties attribute for any azure resource has float values than that attribute is being ignored while creating instance methods
Executing the below in context of an Azure resource,
expected:
actual:
Possible Solution
allow
create_resource_methods
to supportFloat
andBignum
typeslong term support is to include all
Numeric
typessnippet with issue
temporary solution:
Long term solution:
The text was updated successfully, but these errors were encountered: