1
0
Fork 0
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:
Efe Yardimci 2013-09-10 19:53:45 -04:00
parent f36c4f038f
commit 7afe7e10cb
4 changed files with 4 additions and 4 deletions

View file

@ -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'

View file

@ -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'

View file

@ -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 = {}

View file

@ -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 = {}