def _get_cmd():
 if (__grains__['os_family'] == 'RedHat'):
  return 'alternatives'
 return 'update-alternatives'

def _get_cmd ( ) : if ( __grains__ [ 'os_family' ] == 'RedHat' ) : return 'alternatives' return 'update-alternatives'
combines the non-interactive zypper command with arguments/subcommands .