summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2016-09-15 15:20:04 (GMT)
committerChristian Pointner <equinox@helsinki.at>2016-09-15 15:20:04 (GMT)
commit69c3b9981014933ab920fadb117933ce249f75a1 (patch)
tree17b388a3920ad1b616b7150520f5b8a3691f7590 /utils
parent8b8b8c30c973c0149b85b6e97757eec795ba4422 (diff)
also remove multi-show ids from PV when deleted
Diffstat (limited to 'utils')
-rwxr-xr-xutils/rhrd-show11
1 files changed, 11 insertions, 0 deletions
diff --git a/utils/rhrd-show b/utils/rhrd-show
index b7ee202..97d74d3 100755
--- a/utils/rhrd-show
+++ b/utils/rhrd-show
@@ -482,6 +482,17 @@ sub multi_remove
}
print int($result) . " rows affected\n";
+ if($result > 0) {
+ my @args = ($showid);
+ my ($ret, $log) = RHRD::utils::pv_execute_action('remove_automation_id', undef, @args);
+ if($ret) {
+ print "Error: removing showid from PV failed:";
+ print $log;
+ } else {
+ print "removed show $showid from PV\n";
+ }
+ }
+
return 0;
}