Since template_format.parse() attempts to guess the type of the input
instead of using yaml.parse for everything, the input must be a string and
not a stream, even though yaml.parse() can handle either.
Change-Id: I07dc13a54492f3f6db17bfca3cc9e129c765eed5
Signed-off-by: Zane Bitter <zbitter@redhat.com>
def handle_create(self):
response = urllib2.urlopen(self.properties[PROP_TEMPLATE_URL])
- template = template_format.parse(response)
+ template = template_format.parse(response.read())
self.create_with_template(template)