fix misspelling of 'configuration'

Change-Id: Ieefa809a9241aa3bcfd9ffcb6bd44e726ddf5907
This commit is contained in:
inspurericzhang 2018-09-03 15:12:22 +08:00
parent 45df029a4d
commit cb114e5555
1 changed files with 5 additions and 5 deletions

View File

@ -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):