Skip to content

Commit 70c6650

Browse files
committed
Merge pull request #15 from WLPhoenix/master
Fix create_blueprint bug w/ zones and subnets
2 parents 6a32b5f + d0a02e2 commit 70c6650

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

stackdio/client/blueprint.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ def create_blueprint(self, blueprint, provider="ec2"):
3333
if isinstance(host["size"], basestring):
3434
host["size"] = self.get_instance_id(host["size"], provider)
3535

36-
if isinstance(host["zone"], basestring):
36+
# zone isn't required if you provide a subnet_id
37+
if 'zone' in host and isinstance(host["zone"], basestring):
3738
host["zone"] = self.get_zone_id(host["zone"], provider)
3839

3940
if isinstance(host["cloud_profile"], basestring):

stackdio/client/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# limitations under the License.
1616
#
1717

18-
__version__ = "0.6.0.client.2"
18+
__version__ = "0.6.0.client.3"
1919

2020
from functools import wraps
2121
import operator

0 commit comments

Comments
 (0)