fixed restore, it was using an old command line parameters handling
@@ -50,13 +50,13 @@ import os
import signal
import sqlite3
+from foglamp.common.parser import Parser
from foglamp.common.process import FoglampProcess
from foglamp.common import logger
import foglamp.plugins.storage.common.lib as lib
import foglamp.plugins.storage.common.exceptions as exceptions
-
__author__ = "Stefano Simonelli"
__copyright__ = "Copyright (c) 2018 OSIsoft, LLC"
__license__ = "Apache 2.0"
@@ -175,8 +175,9 @@ class RestoreProcess(FoglampProcess):
# Handled Restore command line parameters
try:
- self._backup_id = super().get_arg_value("--backup-id")
- self._file_name = super().get_arg_value("--file")
+ self._backup_id = Parser.get('--backup-id')
+ self._file_name = Parser.get('--file')
+
except Exception as _ex:
_message = _MESSAGES_LIST["e000003"].format(_ex)
