ipa_restore: Split the services list

Make a proper list from the comma-separated string found in
the config.

The only current use of backup_services is in run:
    if 'CA' in self.backup_services:
Without this change, this picked up the 'CA' from 'MEMCACHE'.

Reviewed-By: Tomas Babej <tbabej@redhat.com>
This commit is contained in:
Petr Viktorin 2014-07-29 16:29:42 +02:00
parent 5dfa1116c2
commit 5fef2ecb39

View File

@ -538,7 +538,7 @@ class Restore(admintool.AdminTool):
self.backup_host = config.get('ipa', 'host')
self.backup_ipa_version = config.get('ipa', 'ipa_version')
self.backup_version = config.get('ipa', 'version')
self.backup_services = config.get('ipa', 'services')
self.backup_services = config.get('ipa', 'services').split(',')
def extract_backup(self, keyring=None):