Skip to content
This repository has been archived by the owner on Nov 27, 2023. It is now read-only.

read availability_zone from config if its set in config file. If not set by user or config then raise error #111

Closed
wants to merge 1 commit into from

Conversation

Neetuj
Copy link
Member

@Neetuj Neetuj commented Jun 13, 2014

read availability_zone from config if its set in config file. If not set by user or config then raise error since SLapi requires it to be specified.
This addresses #81

…ywhere then raise and error since SLapi requires it to be specified
@@ -207,9 +207,14 @@ def on_post(self, req, resp, tenant_id):
datacenter = None
if lookup(body, 'server', 'availability_zone'):
Copy link
Contributor

Choose a reason for hiding this comment

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

For clarity, thThis could be simplified to:

        datacenter = (lookup(body, 'server', 'availability_zone') or
                      CONF['compute']['default_availability_zone'])

Copy link
Member Author

Choose a reason for hiding this comment

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

ok

@Neetuj Neetuj closed this Jun 13, 2014
@Neetuj Neetuj deleted the newissue81 branch January 28, 2015 20:49
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants