예제 #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)
예제 #2
0
파일: Yum.py 프로젝트: 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)
예제 #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)
예제 #4
0
파일: Yum.py 프로젝트: 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)