def absent(name):
 ret = {'name': name, 'changes': {}, 'result': True, 'comment': ''}
 grp_info = __salt__['group.info'](name)
 if grp_info:
  if __opts__['test']:
   ret['result'] = None
   ret['comment'] = 'Group {0} is set for removal'.format(name)
   return ret
  ret['result'] = __salt__['group.delete'](name)
  if ret['result']:
   ret['changes'] = {name: ''}
   ret['comment'] = 'Removed group {0}'.format(name)
   return ret
  else:
   ret['comment'] = 'Failed to remove group {0}'.format(name)
   return ret
 else:
  ret['comment'] = 'Group not present'
  return ret

def absent ( name ) : ret = { 'name' : name , 'changes' : { } , 'result' : True , 'comment' : '' } grp_info = __salt__ [ 'group.info' ] ( name ) if grp_info : if __opts__ [ 'test' ] : ret [ 'result' ] = None ret [ 'comment' ] = 'Group {0} is set for removal' . format ( name ) return ret ret [ 'result' ] = __salt__ [ 'group.delete' ] ( name ) if ret [ 'result' ] : ret [ 'changes' ] = { name : '' } ret [ 'comment' ] = 'Removed group {0}' . format ( name ) return ret else : ret [ 'comment' ] = 'Failed to remove group {0}' . format ( name ) return ret else : ret [ 'comment' ] = 'Group not present' return ret
ensure that a org is present .