Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: change pod cuts to make recent versions of perltidy happy #505

Merged
merged 1 commit into from
Oct 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion bin/shell/osh.pl
Original file line number Diff line number Diff line change
Expand Up @@ -1973,7 +1973,8 @@ sub do_plugin_jit_mfa {
#
sub help {

=cut just to debug memory fingerprint
=begin comment
# pod just to debug memory fingerprint
use Devel::Size qw[total_size]; # pragma optional module
my %siz;
foreach (keys %::main::main::)
Expand All @@ -1985,6 +1986,7 @@ sub help {
printf "%9d: %s\n", $_, join(' ', @{$siz{$_}});
}
exit OVH::Bastion::EXIT_OK;
=end comment
=cut

print STDERR <<"EOF" ;
Expand Down
4 changes: 3 additions & 1 deletion lib/perl/OVH/Bastion.pm
Original file line number Diff line number Diff line change
Expand Up @@ -394,12 +394,14 @@ sub is_account_active {
return R('ERR_INTERNAL', msg => "The account activeness check program failed. Report this to sysadmin!");
}

=cut exit code meanings are as follows:
=begin comment
# exit code meanings are as follows:
EXIT_ACTIVE => 0,
EXIT_INACTIVE => 1,
EXIT_UNKNOWN => 2,
EXIT_UNKNOWN_SILENT_ERROR => 3,
EXIT_UNKNOWN_NOISY_ERROR => 4,
=end comment
=cut

if ($fnret->value->{'status'} == 0) {
Expand Down
4 changes: 3 additions & 1 deletion lib/perl/OVH/Result.pm
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ sub new { ## no critic (ArgUnpacking)

sub R { return OVH::Result->new(err => shift, @_); }

=cut uncomment for result tracing
=begin comment
# uncomment for result tracing
sub R {
my ($package, $filename, $line) = caller(0);
my (undef,undef,undef,$sub) = caller(1);
Expand All @@ -56,6 +57,7 @@ sub R {
print "R[err=$err msg=".$params{'msg'}."] sub=$sub in $filename:$line\n";
return OVH::Result->new(err => $err, %params);
}
=end comment
=cut

sub err { return shift->{'err'} }
Expand Down