def _ensure_running(name):
 if (state(name) != 'running'):
  return True
 else:
  return start(name)

def _ensure_running ( name ) : if ( state ( name ) != 'running' ) : return True else : return start ( name )
raise an exception if the container does not exist .