def list_deployments(jboss_config):
 log.debug('======================== MODULE FUNCTION: jboss7.list_deployments')
 command_result = __salt__['jboss7_cli.run_command'](jboss_config, 'deploy')
 deployments = []
 if (len(command_result['stdout']) > 0):
  deployments = re.split('\\s*', command_result['stdout'])
 log.debug('deployments=%s', str(deployments))
 return deployments

def list_deployments ( jboss_config ) : log . debug ( '======================== MODULE FUNCTION: jboss7.list_deployments' ) command_result = __salt__ [ 'jboss7_cli.run_command' ] ( jboss_config , 'deploy' ) deployments = [ ] if ( len ( command_result [ 'stdout' ] ) > 0 ) : deployments = re . split ( '\\s*' , command_result [ 'stdout' ] ) log . debug ( 'deployments=%s' , str ( deployments ) ) return deployments
list all deployments on the jboss instance jboss_config configuration dictionary with properties specified above .