Looks great! +1
[1] 71 + except subprocess.CalledProcessError, e: 72 + log("Error: couldn't discover ec2 availability zone. %s" % str(e), 73 + hookenv.ERROR)
Even though this block is for the ec2 try, it only indicates that it failed grabbing both nova and ec2, in which case I think we could log something more generic. Maybe "Error: couldn't discover volume availability zone..."
« Back to merge proposal
Looks great! +1
[1] CalledProcessEr ror, e:
71 + except subprocess.
72 + log("Error: couldn't discover ec2 availability zone. %s" % str(e),
73 + hookenv.ERROR)
Even though this block is for the ec2 try, it only indicates that it failed grabbing both nova and ec2, in which case I think we could log something more generic. Maybe "Error: couldn't discover volume availability zone..."