def _get(self, opts):
    (config, err) = self.rest.get_backup_service_settings()
    _exit_if_errors(err)
    if (opts.output == 'json'):
        print(json.dumps(config, indent=4))
    else:
        print('-- Backup service configuration --')
        size = (config['history_rotation_size'] if ('history_rotation_size' in config) else 'N/A')
        period = (config['history_rotation_period'] if ('history_rotation_period' in config) else 'N/A')
        print(f'History rotation size: {size} MiB')
        print(f'History rotation period: {period} days')
def _get(self, opts):
    (config, err) = self.rest.get_backup_service_settings()
    _exit_if_errors(err)
    if (opts.output == 'json'):
        print(json.dumps(config, indent=4))
    else:
        print('-- Backup service configuration --')
        size = (config['history_rotation_size'] if ('history_rotation_size' in config) else 'N/A')
        period = (config['history_rotation_period'] if ('history_rotation_period' in config) else 'N/A')
        print(f'History rotation size: {size} MiB')
        print(f'History rotation period: {period} days')