avoid conversion to string in #include

This commit is contained in:
Scott Moser 2015-02-26 13:51:35 -05:00
parent da0d2be598
commit 98e1809aea

View File

@ -237,9 +237,9 @@ class UserDataProcessor(object):
resp = util.read_file_or_url(include_url, resp = util.read_file_or_url(include_url,
ssl_details=self.ssl_details) ssl_details=self.ssl_details)
if include_once_on and resp.ok(): if include_once_on and resp.ok():
util.write_file(include_once_fn, resp, mode=0o600) util.write_file(include_once_fn, resp.contents, mode=0o600)
if resp.ok(): if resp.ok():
content = resp content = resp.contents
else: else:
LOG.warn(("Fetching from %s resulted in" LOG.warn(("Fetching from %s resulted in"
" a invalid http code of %s"), " a invalid http code of %s"),