code: def tenant_absent(name, profile=None, **connection_args):
      '''
      Ensure that the keystone tenant is absent.
  
      name
          The name of the tenant that should not exist
      '''
      ret = {'name': name,
             'changes': {},
             'result': True,
             'comment': 'Tenant / project "{0}" is already absent'.format(name)}
  
      # Check if tenant is present
      tenant = __salt__['keystone.tenant_get'](name=name,
                                               profile=profile,
                                               **connection_args)
      if 'Error' not in tenant:
          if __opts__.get('test'):
              ret['result'] = None
              ret['comment'] = 'Tenant / project "{0}" will be deleted'.format(name)
              return ret
          # Delete tenant
          __salt__['keystone.tenant_delete'](name=name, profile=profile,
                                             **connection_args)
          ret['comment'] = 'Tenant / project "{0}" has been deleted'.format(name)
          ret['changes']['Tenant/Project'] = 'Deleted'
  
      return ref tenant_absent(name, profile=None, **connection_args):
      '''
      Ensure that the keystone tenant is absent.
  
      name
          The name of the tenant that should not exist
      '''
      ret = {'name': name,
             'changes': {},
             'result': True,
             'comment': 'Tenant / project "{0}" is already absent'.format(name)}
  
      # Check if tenant is present
      tenant = __salt__['keystone.tenant_get'](name=name,
                                               profile=profile,
                                               **connection_args)
      if 'Error' not in tenant:
          if __opts__.get('test'):
              ret['result'] = None
              ret['comment'] = 'Tenant / project "{0}" will be deleted'.format(name)
              return ret
          # Delete tenant
          __salt__['keystone.tenant_delete'](name=name, profile=profile,
                                             **connection_args)
          ret['comment'] = 'Tenant / project "{0}" has been deleted'.format(name)
          ret['changes']['Tenant/Project'] = 'Deleted'
  
      return ret
docs: Ensure that the keystone tenant is absent.
  
      name
          The name of the tenant that should not exist