When config is coming from a clouds.yaml file, Python's yaml parser may
turn the version into an int if it is not quoted in the yaml. Ensure
that we set the value to a string before interacting with it.
Also fix a possible string action on a None object.
Reviewed: https:/ /review. openstack. org/388832 /git.openstack. org/cgit/ openstack/ osc-lib/ commit/ ?id=fe8b2a798d0 8df5b6dc5b00c98 66932edf0f9a67
Committed: https:/
Submitter: Jenkins
Branch: master
commit fe8b2a798d08df5 b6dc5b00c986693 2edf0f9a67
Author: Jesse Keating <email address hidden>
Date: Wed Oct 19 10:50:53 2016 -0700
Avoid string actions on non-string objects
When config is coming from a clouds.yaml file, Python's yaml parser may
turn the version into an int if it is not quoted in the yaml. Ensure
that we set the value to a string before interacting with it.
Also fix a possible string action on a None object.
Change-Id: Ibf02a85d89c95b a76688b3f5c417f 861173008d5
Closes-Bug: #1634986