avoid conversion to string in #include
This commit is contained in:
parent
da0d2be598
commit
98e1809aea
@ -237,9 +237,9 @@ class UserDataProcessor(object):
|
||||
resp = util.read_file_or_url(include_url,
|
||||
ssl_details=self.ssl_details)
|
||||
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():
|
||||
content = resp
|
||||
content = resp.contents
|
||||
else:
|
||||
LOG.warn(("Fetching from %s resulted in"
|
||||
" a invalid http code of %s"),
|
||||
|
Loading…
x
Reference in New Issue
Block a user