heat.common.urlfetch module
Utility for fetching a resource (e.g. a template) from a URL.
-
exception heat.common.urlfetch.URLFetchError(msg)[source]
Bases: Error
, OSError
-
heat.common.urlfetch.get(url, allowed_schemes=('http', 'https'))[source]
Get the data at the specified URL.
The URL must use the http: or https: schemes.
The file: scheme is also supported if you override
the allowed_schemes argument.
Raise an IOError if getting the data fails.