示例#1
0
文件: groups.py 项目: Lorquas/func
 def __init__(self,*args,**kwargs):
     """
     Initialize the backend you are going to use
     """
     #initialize here the backend
     if 'get_hosts_for_spec' in kwargs:
         self.get_hosts_for_spec = kwargs['get_hosts_for_spec']
         del kwargs['get_hosts_for_spec']
         
     self.backend = choose_backend(**kwargs)
示例#2
0
    def __init__(self,*args,**kwargs):
        """
        Initialize the backend you are going to use
        """
        #initialize here the backend
        if 'get_hosts_for_spec' in kwargs:
            self.get_hosts_for_spec = kwargs['get_hosts_for_spec']
            del kwargs['get_hosts_for_spec']
        else:
            # fallback/legacy only - won't work for puppet or other minion types
            self.get_hosts_for_spec = get_hosts_spec

        self.backend = choose_backend(**kwargs)
示例#3
0
 def __init__(self,*args,**kwargs):
     """
     Initialize the backend you are going to use
     """
     #initialize here the backend
     self.backend = choose_backend(**kwargs)