Example #1
0
    def get_repo_name(self, url_map):
        """ Try to find a sensible name for a repository.  First use a
        repository's Pulp ID, if it has one; if not, then defer to
        :class:`Bcfg2.Server.Plugins.Packages.Source.Source.get_repo_name`

        :param url_map: A single :attr:`url_map` dict, i.e., any
                        single element of :attr:`url_map`.
        :type url_map: dict
        :returns: string - the name of the repository.
        """
        if self.pulp_id:
            return self.pulp_id
        else:
            return Source.get_repo_name(self, url_map)
Example #2
0
File: Yum.py Project: zenazn/bcfg2
    def get_repo_name(self, url_map):
        """ Try to find a sensible name for a repository.  First use a
        repository's Pulp ID, if it has one; if not, then defer to
        :class:`Bcfg2.Server.Plugins.Packages.Source.Source.get_repo_name`

        :param url_map: A single :attr:`url_map` dict, i.e., any
                        single element of :attr:`url_map`.
        :type url_map: dict
        :returns: string - the name of the repository.
        """
        if self.pulp_id:
            return self.pulp_id
        else:
            return Source.get_repo_name(self, url_map)
Example #3
0
 def get_repo_name(self, url_map):
     if self.pulp_id:
         return self.pulp_id
     else:
         return Source.get_repo_name(self, url_map)
Example #4
0
File: Yum.py Project: ab/bcfg2
 def get_repo_name(self, url_map):
     if self.pulp_id:
         return self.pulp_id
     else:
         return Source.get_repo_name(self, url_map)