* Added anvil-file-details.8, but it's not completely written yet. Converted anvil-file-details to use the new switch loading method.

* Fixed the RC in ocf:alteeve:server to exit with 0 on notify calls, resolves issue #392.
* Fixed typo references in issue #390.

Signed-off-by: digimer <mkelly@alteeve.ca>
main
digimer 1 year ago
parent 1667d1f132
commit 7bf7c3747c
  1. 1
      man/Makefile.am
  2. 29
      man/anvil-file-details.8
  3. 11
      tools/anvil-file-details

@ -16,6 +16,7 @@ dist_man8_MANS = \
anvil-daemon.8 \ anvil-daemon.8 \
anvil-delete-server.8 \ anvil-delete-server.8 \
anvil-download-file.8 \ anvil-download-file.8 \
anvil-file-details.8 \
anvil-manage-alerts.8 \ anvil-manage-alerts.8 \
anvil-manage-dr.8 \ anvil-manage-dr.8 \
anvil-manage-files.8 \ anvil-manage-files.8 \

@ -0,0 +1,29 @@
.\" Manpage for the Anvil! file detail tool
.\" Contact mkelly@alteeve.com to report issues, concerns or suggestions.
.TH anvil-file-details "8" "October 26 2022" "Anvil! Intelligent Availability™ Platform"
.SH NAME
anvil-file-details \- Display details of the file passed in
.SH SYNOPSIS
.B anvil-file-details
\fI\,</path/to/file> \/\fR
.SH DESCRIPTION
All this does is stat a file and return the information in a parsable way. For this reason, translatable strings are not used.
.TP
.SH OPTIONS
.TP
\-?, \-h, \fB\-\-help\fR
Show this man page.
.TP
\fB\-\-log-secure\fR
When logging, record sensitive data, like passwords.
.TP
\-v, \-vv, \-vvv
Set the log level to 1, 2 or 3 respectively. Be aware that level 3 generates a significant amount of log data.
.SS "EXAMPLE"
.TP
.IP
.SH AUTHOR
Written by Madison Kelly, Alteeve staff and the Anvil! project contributors.
.SH "REPORTING BUGS"
Report bugs to users@clusterlabs.org

@ -29,13 +29,10 @@ if (($running_directory =~ /^\./) && ($ENV{PWD}))
my $anvil = Anvil::Tools->new(); my $anvil = Anvil::Tools->new();
$anvil->data->{switches}{file} = ""; $anvil->Get->switches({list => [
$anvil->data->{switches}{'with-md5sum'} = ""; "file",
$anvil->Get->switches; "with-md5sum"], man => $THIS_FILE});
$anvil->Log->variables({source => $THIS_FILE, line => __LINE__, level => 2, list => { $anvil->Log->variables({source => $THIS_FILE, line => __LINE__, level => 2, list => $anvil->data->{switches}});
"switches::file" => $anvil->data->{switches}{file},
"switches::with-md5sum" => $anvil->data->{switches}{'with-md5sum'},
}});
my $file = $anvil->data->{switches}{file}; my $file = $anvil->data->{switches}{file};
if (not $file) if (not $file)

Loading…
Cancel
Save