blob: 45c5cdb2875eba63cfdac0159064258b248797ee [file] [log] [blame]
kairat_kushaev66852622018-06-07 17:27:35 +04001"""
2Module for handling Heat stacks.
3
4:depends: - os_client_config
5:configuration: This module is not usable until the following are specified
6"""
7
8try:
9 import os_client_config
10 REQUIREMENTS_MET = True
11except ImportError:
12 REQUIREMENTS_MET = False
13
kairat_kushaev66852622018-06-07 17:27:35 +040014
Oleksiy Petrenko5e6ebc92018-08-09 15:03:30 +030015from heatv1 import stack
kairat_kushaev66852622018-06-07 17:27:35 +040016
17stack_create = stack.stack_create
18stack_delete = stack.stack_delete
19stack_list = stack.stack_list
20stack_show = stack.stack_show
21stack_update = stack.stack_update
22
23__all__ = ('stack_create', 'stack_list', 'stack_delete', 'stack_show',
24 'stack_update')
25
26
27def __virtual__():
28 if REQUIREMENTS_MET:
29 return 'heatv1'
30 else:
31 return False, ("The heat execution module cannot be loaded: "
32 "os_client_config is not available.")