mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
Fix incorrect boolean expression; should have been string comparison
This commit is contained in:
parent
f36c4f038f
commit
7afe7e10cb
4 changed files with 4 additions and 4 deletions
|
@ -81,7 +81,7 @@ module Fog
|
|||
when 'ClusterCreateTime'
|
||||
@cluster[name] = Time.parse(value)
|
||||
when 'AllowVersionUpgrade', 'Encrypted', 'PubliclyAccessible'
|
||||
@cluster[name] = (value == true)
|
||||
@cluster[name] = (value == "true")
|
||||
when 'Address'
|
||||
@cluster['EndPoint'][name] = value
|
||||
when 'Port'
|
||||
|
|
|
@ -52,7 +52,7 @@ module Fog
|
|||
when 'SnapshotCreateTime', 'ClusterCreateTime'
|
||||
@snapshot['Snapshot'][name] = Time.parse(value)
|
||||
when 'Encrypted'
|
||||
@snapshot['Snapshot'][name] = (value == true)
|
||||
@snapshot['Snapshot'][name] = (value == "true")
|
||||
when 'TotalBackupSizeInMegaBytes', 'ActualIncrementalBackupSizeInMegaBytes', 'BackupProgressInMegaBytes', 'CurrentBackupRateInMegaBytesPerSecond'
|
||||
@snapshot['Snapshot'][name] = value.to_f
|
||||
when 'AccountId'
|
||||
|
|
|
@ -35,7 +35,7 @@ module Fog
|
|||
when 'ParameterName', 'ParameterValue', 'Description', 'Source', 'DataType', 'AllowedValues', 'MinimumEngineVersion'
|
||||
@parameter[name] = value
|
||||
when 'IsModifiable'
|
||||
@parameter[name] = (value == true)
|
||||
@parameter[name] = (value == "true")
|
||||
when 'Parameter'
|
||||
@response['Parameters'] << {name => @parameter}
|
||||
@parameter = {}
|
||||
|
|
|
@ -36,7 +36,7 @@ module Fog
|
|||
when 'ParameterName', 'ParameterValue', 'Description', 'Source', 'DataType', 'AllowedValues', 'MinimumEngineVersion'
|
||||
@parameter[name] = value
|
||||
when 'IsModifiable'
|
||||
@parameter[name] = (value == true)
|
||||
@parameter[name] = (value == "true")
|
||||
when 'Parameter'
|
||||
@response['Parameters'] << {name => @parameter}
|
||||
@parameter = {}
|
||||
|
|
Loading…
Reference in a new issue