Skip to content

Commit 655e0fc

Browse files
committed
splunkvresioncontrol_restore_class updated to show a message if the app in question does not exist
1 parent 2ed9e8c commit 655e0fc

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -326,6 +326,9 @@ As of October 2022, there are still no signs of version control within the Splun
326326
- [Search Head Backup](https://splunkbase.splunk.com/app/6438) - backup to an index, works in Splunk Cloud
327327

328328
## Release Notes
329+
### 1.2.13
330+
- `splunkversioncontrol_restore_class.py` - updated to show a message if the app in question does not exist
331+
329332
### 1.2.12
330333
- Update as per github issue #28, python code update to splunkversioncontrol_utility.py for Splunk 9.3 compatability contributed by ParksBra
331334

bin/splunkversioncontrol_restore_class.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1695,6 +1695,7 @@ def run_script(self, restlist_override=None, config_override=None):
16951695
#If the app is not known, the restore stops here as we have nothing to restore from!
16961696
if app not in knownAppList:
16971697
logger.error("i=\"%s\" user=%s requested a restore from app=%s but this is not in the knownAppList therefore restore cannot occur, object=%s of type=%s to be restored with user=%s and time=%s" % (self.stanza_name, user, app, name, obj_type, restore_as_user, time))
1698+
message = f"i=\"{self.stanza_name}\" user={user} requested a restore from app={app} but this is not in the knownAppList therefore restore cannot occur, object={name} of type={obj_type} to be restored with user={restore_as_user} and time={time}"
16981699
continue
16991700

17001701
#Deal with the different types of restores that might be required, we only do one row at a time...

default/app.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ label = SplunkVersionControl
1212
[launcher]
1313
author = Gareth Anderson
1414
description = Version Control software for Splunk instances (backup/restore from git)
15-
version = 1.2.12
15+
version = 1.2.13
1616

1717
[package]
1818
id = SplunkVersionControl

0 commit comments

Comments
 (0)