Changeset 40898 for branches/ipp-132_automate_jira_conf_backups/backups/backup_atlassian_applications.py
- Timestamp:
- Oct 3, 2019, 12:46:09 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/ipp-132_automate_jira_conf_backups/backups/backup_atlassian_applications.py
r40897 r40898 9 9 import sys 10 10 11 # note that this replies on sym link to the 'trunk/tools/utils/python' folder existing 12 # in this directory with the name 'utils'. This is not an elegant solution, but 13 # a restructure would be needed 14 # Ideally, the utils should be added to the path. 15 import subprocess_utils as sub_utils 16 11 import backups.utils.subprocess_utils as sub_utils 12 from backups.utils.errors import ConfigError, SubprocessError 17 13 18 14 DEFAULT_CONFIG_FILE = path.join(path.dirname(__file__), 'atlassian_backups.config') 19 20 21 class ConfigError(Exception):22 """Error in loading the config file"""23 24 def __init__(self, config_item, message):25 self.config_item = config_item26 self.message = message27 15 28 16 … … 284 272 decoded_stderr = stde.decode() 285 273 if decoded_stderr.casefold().find('error'.casefold()) > -1: 286 raise sub_utils.SubprocessError()274 raise SubprocessError() 287 275 288 276 # move the dump file to the correct locations
Note:
See TracChangeset
for help on using the changeset viewer.
