mirror of
https://github.com/ovh/the-bastion.git
synced 2024-11-10 17:26:51 +08:00
chore: microfixes after review
This commit is contained in:
parent
3764d652da
commit
4fd010c355
3 changed files with 3 additions and 3 deletions
|
@ -37,7 +37,7 @@ Usage: --osh SCRIPT_NAME --group GROUP --account ACCOUNT [OPTIONS]
|
|||
--scpup allow SCP upload, you--bastion-->server (omit --user in this case)
|
||||
--scpdown allow SCP download, you<--bastion--server (omit --user in this case)
|
||||
--ttl SECONDS|DURATION specify a number of seconds after which the access will automatically expire
|
||||
--comment '"ANY TEXT'" add a comment alongside this access.
|
||||
--comment '"ANY TEXT"' add a comment alongside this access.
|
||||
If omitted, we'll use the closest preexisting group access' comment as seen in groupListServers
|
||||
|
||||
This command adds, to an existing bastion account, access to the egress keys of a group,
|
||||
|
|
|
@ -175,7 +175,7 @@ if (OVH::Bastion::is_auditor(account => $self)) {
|
|||
$fnret = OVH::Bastion::account_config(account => $account, public => 1, key => OVH::Bastion::OPT_ACCOUNT_INGRESS_PIV_POLICY);
|
||||
$ret{'ingress_piv_enforced'} = ($fnret && $fnret->value eq 'yes') ? 1 : 0; # keep for backwards compat
|
||||
$ret{'ingress_piv_policy'} = $fnret->value || undef;
|
||||
my $ingress_piv_policy_print = $ret{'ingress_piv_policy'} ? $ret{'ingress_piv_policy'} : 'default';
|
||||
my $ingress_piv_policy_print = $ret{'ingress_piv_policy'} || 'default';
|
||||
osh_info "- PIV policy for ingress keys on this account is set to " . colored($ingress_piv_policy_print, $ingress_piv_policy_print eq 'default' ? 'blue' : 'green');
|
||||
|
||||
$fnret = OVH::Bastion::account_config(account => $account, public => 1, key => OVH::Bastion::OPT_ACCOUNT_INGRESS_PIV_GRACE);
|
||||
|
|
|
@ -54,7 +54,7 @@ Add a specific group server access to an account
|
|||
|
||||
specify a number of seconds after which the access will automatically expire
|
||||
|
||||
.. option:: --comment '"ANY TEXT'"
|
||||
.. option:: --comment '"ANY TEXT"'
|
||||
|
||||
add a comment alongside this access.
|
||||
|
||||
|
|
Loading…
Reference in a new issue