mirror of
https://github.com/fog/fog-aws.git
synced 2022-11-09 13:50:52 -05:00
Use Fog.warning
This commit is contained in:
parent
6e989aa6a0
commit
aa2fad1200
1 changed files with 2 additions and 1 deletions
|
@ -64,7 +64,8 @@ DATA
|
||||||
elsif self.region != 'us-east-1'
|
elsif self.region != 'us-east-1'
|
||||||
response.status = 409
|
response.status = 409
|
||||||
msg = "Your region '#{self.region}' does not match the default region 'us-east-1'"
|
msg = "Your region '#{self.region}' does not match the default region 'us-east-1'"
|
||||||
raise(Excon::Errors.status_error({:expects => "StatusCode: #{200} : Warning! #{msg}"}, response))
|
Fog.warning msg
|
||||||
|
raise(Excon::Errors.status_error({:expects => 201}, response))
|
||||||
end
|
end
|
||||||
response
|
response
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue