blob: 51d90b403d1d0b72e5ac61e4f922bbf2b8783053 [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
14import os
15import sys
16
17# i failed to load module witjout this
18# seems bugs in salt or it is only me
19sys.path.insert(0, os.path.abspath(os.path.dirname(__file__)))
20
21import stack
22
23stack_create = stack.stack_create
24stack_delete = stack.stack_delete
25stack_list = stack.stack_list
26stack_show = stack.stack_show
27stack_update = stack.stack_update
28
29__all__ = ('stack_create', 'stack_list', 'stack_delete', 'stack_show',
30 'stack_update')
31
32
33def __virtual__():
34 if REQUIREMENTS_MET:
35 return 'heatv1'
36 else:
37 return False, ("The heat execution module cannot be loaded: "
38 "os_client_config is not available.")