Permalink
Browse files

Allow cloud name to contain colons

  • Loading branch information...
1 parent 8468c2d commit 80cd368a04d48622b3f45cb7f5e26212084e6783 @priteau priteau committed Apr 4, 2013
Showing with 3 additions and 3 deletions.
  1. +3 −3 pyhantom/system/epu/definitions.py
@@ -45,10 +45,10 @@
def validate_cloud(cloud_string):
- la = cloud_string.split(':')
- if len(la) != 2:
+ la = cloud_string.rpartition(":")
+ if len(la) != 3 or la[1] != ":":
raise PhantomAWSException('InvalidParameterValue', details="The format is <cloud site name>:<integer size>. You sent %s" % (cloud_string))
- (site_name, n_vms) = la
+ (site_name, _, n_vms) = la
try:
int(n_vms)

0 comments on commit 80cd368

Please sign in to comment.