Revision e1b8653f

b/lib/cmdlib.py
1572 1572
                    constants.RAPI_CERT_FILE,
1573 1573
                    constants.RAPI_USERS_FILE,
1574 1574
                   ])
1575

  
1576
  enabled_hypervisors = lu.cfg.GetClusterInfo().enabled_hypervisors
1577
  for hv_name in enabled_hypervisors:
1578
    hv_class = hypervisor.GetHypervisor(hv_name)
1579
    dist_files.update(hv_class.GetAncillaryFiles())
1580

  
1575 1581
  # 3. Perform the files upload
1576 1582
  for fname in dist_files:
1577 1583
    if os.path.exists(fname):
b/lib/hypervisor/hv_base.py
100 100

  
101 101
  """
102 102
  PARAMETERS = {}
103
  ANCILLARY_FILES = []
103 104

  
104 105
  def __init__(self):
105 106
    pass
......
157 158
    """
158 159
    raise NotImplementedError
159 160

  
161
  @classmethod
162
  def GetAncillaryFiles(cls):
163
    """Return a list of ancillary files to be copied to all nodes as ancillary
164
    configuration files.
165

  
166
    @rtype: list of strings
167
    @return: list of absolute paths of files to ship cluster-wide
168

  
169
    """
170
    # By default we return a member variable, so that if an hypervisor has just
171
    # a static list of files it doesn't have to override this function.
172
    return cls.ANCILLARY_FILES
173

  
160 174
  def Verify(self):
161 175
    """Verify the hypervisor.
162 176

  

Also available in: Unified diff