heat.common.urlfetch module

heat.common.urlfetch module

Utility for fetching a resource (e.g. a template) from a URL.

exception heat.common.urlfetch.URLFetchError(msg)[source]

Bases: heat.common.exception.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.

Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.