no need to define `project` at the beginning of install(), we can
just use `config.get('project', 'ceph')`. better readability this way,
as we will reference `ceph` in the same expression.
Signed-off-by: Kefu Chai <kchai@redhat.com>
:param config: the config dict
"""
- project = config.get('project', 'ceph')
-
package_list = get_package_list(ctx, config)
debs = package_list['deb']
rpms = package_list['rpm']
finally:
remove_packages(ctx, config, package_list)
remove_sources(ctx, config)
- if project == 'ceph':
+ if config.get('project', 'ceph') == 'ceph':
purge_data(ctx)