Skip to content
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

create db instance in the correct region #79

Merged
merged 1 commit into from
Mar 27, 2015

Conversation

lanej
Copy link
Member

@lanej lanej commented Mar 26, 2015

  • and fix variable shadow warning

* and fix variable shadow warning
@@ -46,7 +46,6 @@ def describe_db_instances(identifier=nil, opts={})
case server["DBInstanceStatus"]
when "creating"
if Time.now - server['InstanceCreateTime'] >= Fog::Mock.delay * 2
region = "us-east-1"
server["DBInstanceStatus"] = "available"
server["AvailabilityZone"] ||= region + 'a'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Won't this region be undefined now?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, got it, just wanted to double check.

geemus added a commit that referenced this pull request Mar 27, 2015
create db instance in the correct region
@geemus geemus merged commit f591ac6 into fog:master Mar 27, 2015
@geemus
Copy link
Member

geemus commented Mar 27, 2015

Thanks!

@lanej lanej deleted the rds-db-instance-az branch March 27, 2015 15:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants