ironic.common.molds module

ironic.common.molds.get_configuration(task, url)[source]

Gets configuration mold from indicated location.

Parameters:
  • task – A TaskManager instance.

  • url – URL of the configuration item to get.

Returns:

JSON configuration mold

Raises:
  • IronicException – If using Swift storage and no authentication token found in task’s context.

  • HTTPError – If failed to complete HTTP request.

ironic.common.molds.save_configuration(task, url, data)[source]

Store configuration mold to indicated location.

Parameters:
  • task – A TaskManager instance.

  • name – URL of the configuration item to save to.

  • data – Content of JSON data to save.

Raises:
  • IronicException – If using Swift storage and no authentication token found in task’s context.

  • HTTPError – If failed to complete HTTP request.