summaryrefslogtreecommitdiff
path: root/utils/rhrd-sanity-check
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2015-10-09 00:16:02 (GMT)
committerChristian Pointner <equinox@spreadspace.org>2015-10-09 00:16:02 (GMT)
commit91a5a9072f82cef110535917a4601f14ddd9fa31 (patch)
treea6be492d2d84382c4a61ac2309dc92cf20255f28 /utils/rhrd-sanity-check
parente10c9d729f9c7c9bf342e0053dc53988d4e26ff2 (diff)
improved sanity checks for dropbox params
Diffstat (limited to 'utils/rhrd-sanity-check')
-rwxr-xr-xutils/rhrd-sanity-check27
1 files changed, 21 insertions, 6 deletions
diff --git a/utils/rhrd-sanity-check b/utils/rhrd-sanity-check
index 9dc5c43..93d933e 100755
--- a/utils/rhrd-sanity-check
+++ b/utils/rhrd-sanity-check
@@ -262,7 +262,20 @@ sub check_groups
}
-sub check_logs
+sub check_dropboxes
+{
+ my ($ctx) = @_;
+
+ my $errors = 0;
+ print "dropboxes:\n";
+
+ print "\n " . $errors . " errors found\n";
+
+ return $errors;
+}
+
+
+sub check_showids
{
my ($ctx) = @_;
@@ -276,12 +289,12 @@ sub check_logs
}
-sub check_dropboxes
+sub check_logs
{
my ($ctx) = @_;
- my $errors = 0;
- print "dropboxes:\n";
+ my $errors = 0,
+ print "logs:\n";
print " ... checks not yet implemtned!!\n";
print "\n " . $errors . " errors found\n";
@@ -294,9 +307,11 @@ my ($ctx, $status, $errorstring) = RHRD::rddb::init();
if(defined $ctx) {
check_groups($ctx);
print "\n";
- check_logs($ctx);
- print "\n";
check_dropboxes($ctx);
+ print "\n";
+ check_showids($ctx);
+ print "\n";
+ check_logs($ctx);
RHRD::rddb::destroy($ctx);
} else {