def resource_absent(resource, identifier_fields, profile='pagerduty', subdomain=None, api_key=None, **kwargs):
 ret = {'name': kwargs['name'], 'changes': {}, 'result': None, 'comment': ''}
 for (k, v) in kwargs.items():
  if (k not in identifier_fields):
   continue
  result = delete_resource(resource, v, identifier_fields, profile=profile, subdomain=subdomain, api_key=api_key)
  if (result is None):
   ret['result'] = True
   ret['comment'] = '{0} deleted'.format(v)
   return ret
  elif (result is True):
   continue
  elif __opts__['test']:
   ret['comment'] = result
   return ret
  elif ('error' in result):
   ret['result'] = False
   ret['comment'] = result
   return ret
 return ret

def resource_absent ( resource , identifier_fields , profile = 'pagerduty' , subdomain = None , api_key = None , ** kwargs ) : ret = { 'name' : kwargs [ 'name' ] , 'changes' : { } , 'result' : None , 'comment' : '' } for ( k , v ) in kwargs . items ( ) : if ( k not in identifier_fields ) : continue result = delete_resource ( resource , v , identifier_fields , profile = profile , subdomain = subdomain , api_key = api_key ) if ( result is None ) : ret [ 'result' ] = True ret [ 'comment' ] = '{0} deleted' . format ( v ) return ret elif ( result is True ) : continue elif __opts__ [ 'test' ] : ret [ 'comment' ] = result return ret elif ( 'error' in result ) : ret [ 'result' ] = False ret [ 'comment' ] = result return ret return ret
generic resource .