def get_boot_arch():
 ret = salt.utils.mac_utils.execute_return_result('systemsetup -getkernelbootarchitecturesetting')
 arch = salt.utils.mac_utils.parse_return(ret)
 if ('default' in arch):
  return 'default'
 elif ('i386' in arch):
  return 'i386'
 elif ('x86_64' in arch):
  return 'x86_64'
 return 'unknown'

def get_boot_arch ( ) : ret = salt . utils . mac_utils . execute_return_result ( 'systemsetup -getkernelbootarchitecturesetting' ) arch = salt . utils . mac_utils . parse_return ( ret ) if ( 'default' in arch ) : return 'default' elif ( 'i386' in arch ) : return 'i386' elif ( 'x86_64' in arch ) : return 'x86_64' return 'unknown'
get the kernel architecture setting from com .