[PR #145] [MERGED] fix: accountInfo: get rid of 2 warn() #274

Closed
opened 2026-05-07 00:20:07 +02:00 by BreizhHardware · 0 comments

📋 Pull Request Information

Original PR: https://github.com/ovh/the-bastion/pull/145
Author: @speed47
Created: 2/19/2021
Status: Merged
Merged: 2/22/2021
Merged by: @speed47

Base: masterHead: fixwarn


📝 Commits (2)

  • 68e6a67 fix: accountInfo: get rid of a warn()
  • 83f72e5 enh: interactive: avoid a warn() when TERM is undef

📊 Changes

2 files changed (+10 additions, -2 deletions)

View changed files

📝 bin/plugin/restricted/accountInfo (+2 -1)
📝 lib/perl/OVH/Bastion/interactive.inc (+8 -1)

📄 Description

This occurred since v3.01.99-rc1 when requesting an accountInfo
of an account without an ingress_piv_policy set.

Use of uninitialized value in concatenation (.) or string at /usr/share/perl/5.28/Term/ANSIColor.pm line 510. at /opt/bastion/bin/plugin/restricted/../../../lib/perl/OVH/Bastion.pm line 41. OVH::Bastion::__ANON__("Use of uninitialized value \ in concatenation (.) or st"...) called at /usr/share/perl/5.28/Term/ANSIColor.pm line 510 Term::ANSIColor::colored(undef, "green") called at /opt/bastion/bin/plugin/restricted/accountInfo line 178


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ovh/the-bastion/pull/145 **Author:** [@speed47](https://github.com/speed47) **Created:** 2/19/2021 **Status:** ✅ Merged **Merged:** 2/22/2021 **Merged by:** [@speed47](https://github.com/speed47) **Base:** `master` ← **Head:** `fixwarn` --- ### 📝 Commits (2) - [`68e6a67`](https://github.com/ovh/the-bastion/commit/68e6a67722e04d38031e8e07e3e616702a1cfc06) fix: accountInfo: get rid of a warn() - [`83f72e5`](https://github.com/ovh/the-bastion/commit/83f72e5a44b92821114b6f429f91ac6a34c6624d) enh: interactive: avoid a warn() when TERM is undef ### 📊 Changes **2 files changed** (+10 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `bin/plugin/restricted/accountInfo` (+2 -1) 📝 `lib/perl/OVH/Bastion/interactive.inc` (+8 -1) </details> ### 📄 Description This occurred since `v3.01.99-rc1` when requesting an `accountInfo` of an account without an `ingress_piv_policy` set. `Use of uninitialized value in concatenation (.) or string at /usr/share/perl/5.28/Term/ANSIColor.pm line 510. at /opt/bastion/bin/plugin/restricted/../../../lib/perl/OVH/Bastion.pm line 41. OVH::Bastion::__ANON__("Use of uninitialized value \ in concatenation (.) or st"...) called at /usr/share/perl/5.28/Term/ANSIColor.pm line 510 Term::ANSIColor::colored(undef, "green") called at /opt/bastion/bin/plugin/restricted/accountInfo line 178` --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
BreizhHardware 2026-05-07 00:20:07 +02:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/the-bastion#274
No description provided.