code: def update_or_create(cls, with_status=False, **kwargs):
          
          element, updated, created = super(ActiveDirectoryServer, cls).update_or_create(
              defer_update=True, **kwargs)
          
          if not created:
              domain_controller = kwargs.pop('domain_controller', [])
              if domain_controller:
                  current_dc_list = element.domain_controller
              for dc in domain_controller:
                  if dc not in current_dc_list:
                      element.data.setdefault('domain_controller', []).append(dc.data)
                      updated = True
          
          if updated:
              element.update()
          if with_status:
              return element, updated, created
          return element
docs: Update or create active directory configuration.
          
          :param dict kwargs: kwargs to satisfy the `create` constructor arguments
              if the element doesn't exist or attributes to change
          :raises CreateElementFailed: failed creating element
          :return: element instance by type or 3-tuple if with_status set