def flocker_ca(command, *args, **kwargs):
 command = ([EXECUTABLE, command] + list(args))
 try:
  result = run_process(command, **kwargs)
  output = result.output
  status = 0
 except CalledProcessError as e:
  Message.new(message_type='flocker.ca.functional:ca_initialize_error', error=str(e)).write(Logger())
  output = e.output
  status = e.returncode
 return (status, output)

def flocker_ca ( command , * args , ** kwargs ) : command = ( [ EXECUTABLE , command ] + list ( args ) ) try : result = run_process ( command , ** kwargs ) output = result . output status = 0 except CalledProcessError as e : Message . new ( message_type = 'flocker.ca.functional:ca_initialize_error' , error = str ( e ) ) . write ( Logger ( ) ) output = e . output status = e . returncode return ( status , output )
run a flocker-ca command and return the output along with an indicator as to whether or not the command succeeded .