diskimage_builder.element_dependencies.
AlreadyProvidedException
¶Bases: Exception
diskimage_builder.element_dependencies.
Element
(name, path)¶Bases: object
An element
diskimage_builder.element_dependencies.
InvalidElementDir
¶Bases: Exception
diskimage_builder.element_dependencies.
MissingElementException
¶Bases: Exception
diskimage_builder.element_dependencies.
MissingOSException
¶Bases: Exception
diskimage_builder.element_dependencies.
expand_dependencies
(user_elements, element_dirs)¶Deprecated method for expanding element dependencies.
Warning
DO NOT USE THIS FUNCTION. For compatibility reasons, this function does not provide paths to the returned elements. This means the caller must process override rules if two elements with the same name appear in element_dirs
Parameters: |
|
---|---|
Returns: | a set containing user_elements and all dependent elements including any transitive dependencies. |
diskimage_builder.element_dependencies.
get_elements
(elements, paths=None)¶Return the canonical list of elements with their dependencies
Note
You probably do not want to use this! Elements that require access to the list of all other elements should generally use the environment variables exported by disk-image-create below.
Parameters: |
|
---|---|
Returns: | A de-duplicated list of tuples [(element, path), (element, path) …] with all elements and their dependents, including any transitive dependencies. |
diskimage_builder.element_dependencies.
main
()¶diskimage_builder.logging_config.
DibFormatter
(*args, **kwargs)¶Bases: logging.Formatter
format
(record)¶Format the specified record as text.
The record’s attribute dictionary is used as the operand to a string formatting operation which yields the returned string. Before formatting the dictionary, a couple of preparatory steps are carried out. The message attribute of the record is computed using LogRecord.getMessage(). If the formatting string uses the time (as determined by a call to usesTime(), formatTime() is called to format the event time. If there is exception information, it is formatted using formatException() and appended to the message.
diskimage_builder.logging_config.
setup
()¶Export paths
diskimage_builder.paths.
get_path
(var)¶diskimage_builder.paths.
show_path
(var)¶Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.