fix misspelling of 'configuration'
Change-Id: Ieefa809a9241aa3bcfd9ffcb6bd44e726ddf5907
This commit is contained in:
parent
45df029a4d
commit
cb114e5555
|
@ -220,18 +220,18 @@ def save_to_file(destination_file):
|
||||||
{'file_path': destination_file, 'exc': exc})
|
{'file_path': destination_file, 'exc': exc})
|
||||||
|
|
||||||
|
|
||||||
def restore_from_file(configration_file):
|
def restore_from_file(configuration_file):
|
||||||
rtsroot = rtslib_fb.root.RTSRoot()
|
rtsroot = rtslib_fb.root.RTSRoot()
|
||||||
# If configuration file is None, use rtslib default save file.
|
# If configuration file is None, use rtslib default save file.
|
||||||
if not configration_file:
|
if not configuration_file:
|
||||||
configration_file = rtslib_fb.root.default_save_file
|
configuration_file = rtslib_fb.root.default_save_file
|
||||||
|
|
||||||
try:
|
try:
|
||||||
rtsroot.restore_from_file(configration_file)
|
rtsroot.restore_from_file(configuration_file)
|
||||||
except (OSError, IOError) as exc:
|
except (OSError, IOError) as exc:
|
||||||
raise RtstoolError(_('Could not restore configuration file '
|
raise RtstoolError(_('Could not restore configuration file '
|
||||||
'%(file_path)s: %(exc)s'),
|
'%(file_path)s: %(exc)s'),
|
||||||
{'file_path': configration_file, 'exc': exc})
|
{'file_path': configuration_file, 'exc': exc})
|
||||||
|
|
||||||
|
|
||||||
def parse_optional_create(argv):
|
def parse_optional_create(argv):
|
||||||
|
|
Loading…
Reference in New Issue