def minimal_needed_configuration(node, timeout=60, extra_sls=[]): full_sls = sls_list + extra_sls logging.debug('Executing salt script[{}]'.format(full_sls)) for sls in full_sls: local = LocalNode() local.pwd() try: local.shell(get_salt_cmd(sls, get_provision_ip(node))) except: raise Exception('Salt execution failed: ' + sys.exc_info()[1]) finally: logging.debug('Salt Status:' + str(local.status)) logging.debug('Satl Output:' + local.stdout.rstrip()) logging.debug('Salt Errors:' + local.stderr) logging.debug('Executed salt script[{}]'.format(full_sls))