glance.common.scripts.utils.get_image_data_iter(uri)[source]¶Returns iterable object either for local file or uri
uri – uri (remote or local) to the datasource we want to iterate
Validation/sanitization of the uri is expected to happen before we get here.
glance.common.scripts.utils.get_task(task_repo, task_id)[source]¶Gets a TaskProxy object.
task_repo – TaskRepo object used to perform DB operations
task_id – ID of the Task
glance.common.scripts.utils.set_base_image_properties(properties=None)[source]¶Sets optional base properties for creating Image.
properties – Input dict to set some base properties
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.