def get_default_keychain(user=None, domain='user'):
 cmd = 'security default-keychain -d {0}'.format(domain)
 return __salt__['cmd.run'](cmd, runas=user)

def get_default_keychain ( user = None , domain = 'user' ) : cmd = 'security default-keychain -d {0}' . format ( domain ) return __salt__ [ 'cmd.run' ] ( cmd , runas = user )
get the default keychain user the user to check the default keychain of domain the domain to use valid values are user|system|common|dynamic .