Exemplo n.º 1
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']
         
     self.backend = choose_backend(**kwargs)
Exemplo n.º 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)
Exemplo n.º 3
0
 def __init__(self,*args,**kwargs):
     """
     Initialize the backend you are going to use
     """
     #initialize here the backend
     self.backend = choose_backend(**kwargs)