def get_sorcery_ver(module):
 cmd_sorcery = ('%s --version' % SORCERY['sorcery'])
 (rc, stdout, stderr) = module.run_command(cmd_sorcery)
 if ((rc != 0) or (not stdout)):
  module.fail_json(msg='unable to get Sorcery version')
 return stdout.strip()

def get_sorcery_ver ( module ) : cmd_sorcery = ( '%s --version' % SORCERY [ 'sorcery' ] ) ( rc , stdout , stderr ) = module . run_command ( cmd_sorcery ) if ( ( rc != 0 ) or ( not stdout ) ) : module . fail_json ( msg = 'unable to get Sorcery version' ) return stdout . strip ( )
get sorcery version .