From cb114e555522436b745720e3dda5f40ab1d7f04d Mon Sep 17 00:00:00 2001 From: inspurericzhang Date: Mon, 3 Sep 2018 15:12:22 +0800 Subject: [PATCH] fix misspelling of 'configuration' Change-Id: Ieefa809a9241aa3bcfd9ffcb6bd44e726ddf5907 --- cinder/cmd/rtstool.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/cinder/cmd/rtstool.py b/cinder/cmd/rtstool.py index ec065b1ff20..48512da80bd 100644 --- a/cinder/cmd/rtstool.py +++ b/cinder/cmd/rtstool.py @@ -220,18 +220,18 @@ def save_to_file(destination_file): {'file_path': destination_file, 'exc': exc}) -def restore_from_file(configration_file): +def restore_from_file(configuration_file): rtsroot = rtslib_fb.root.RTSRoot() # If configuration file is None, use rtslib default save file. - if not configration_file: - configration_file = rtslib_fb.root.default_save_file + if not configuration_file: + configuration_file = rtslib_fb.root.default_save_file try: - rtsroot.restore_from_file(configration_file) + rtsroot.restore_from_file(configuration_file) except (OSError, IOError) as exc: raise RtstoolError(_('Could not restore configuration file ' '%(file_path)s: %(exc)s'), - {'file_path': configration_file, 'exc': exc}) + {'file_path': configuration_file, 'exc': exc}) def parse_optional_create(argv):