blob: 45c5cdb2875eba63cfdac0159064258b248797ee [file] [log] [blame]
"""
Module for handling Heat stacks.
:depends: - os_client_config
:configuration: This module is not usable until the following are specified
"""
try:
import os_client_config
REQUIREMENTS_MET = True
except ImportError:
REQUIREMENTS_MET = False
from heatv1 import stack
stack_create = stack.stack_create
stack_delete = stack.stack_delete
stack_list = stack.stack_list
stack_show = stack.stack_show
stack_update = stack.stack_update
__all__ = ('stack_create', 'stack_list', 'stack_delete', 'stack_show',
'stack_update')
def __virtual__():
if REQUIREMENTS_MET:
return 'heatv1'
else:
return False, ("The heat execution module cannot be loaded: "
"os_client_config is not available.")