[PR #58] [MERGED] make sure we get a number, it not we set 0 #113

Closed
opened 2026-03-03 15:30:15 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/luthermonson/go-proxmox/pull/58
Author: @earentir
Created: 4/13/2023
Status: Merged
Merged: 5/10/2023
Merged by: @luthermonson

Base: mainHead: main


📝 Commits (3)

  • e7f49ad make sure we get a number, it not we set 0
  • 25864c5 fixed regex into const
  • 7142e62 fixed regex according to suggestion by @luthermonson

📊 Changes

1 file changed (+19 additions, -0 deletions)

View changed files

📝 types.go (+19 -0)

📄 Description

I have the following issue, in any host that has stopped VMs I get the string null as b, I added a regexp check for checking if we have a number and if not set str to "0"


🔄 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/luthermonson/go-proxmox/pull/58 **Author:** [@earentir](https://github.com/earentir) **Created:** 4/13/2023 **Status:** ✅ Merged **Merged:** 5/10/2023 **Merged by:** [@luthermonson](https://github.com/luthermonson) **Base:** `main` ← **Head:** `main` --- ### 📝 Commits (3) - [`e7f49ad`](https://github.com/luthermonson/go-proxmox/commit/e7f49ad67ebed3c890654996d8833f4d77aedcc6) make sure we get a number, it not we set 0 - [`25864c5`](https://github.com/luthermonson/go-proxmox/commit/25864c523363edcbbc79b6bd15c46e134e1c4132) fixed regex into const - [`7142e62`](https://github.com/luthermonson/go-proxmox/commit/7142e62e34f1843117cd17722d4a14d439184f3c) fixed regex according to suggestion by @luthermonson ### 📊 Changes **1 file changed** (+19 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `types.go` (+19 -0) </details> ### 📄 Description I have the following issue, in any host that has stopped VMs I get the string null as b, I added a regexp check for checking if we have a number and if not set str to "0" --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-03 15:30:15 +03:00
Sign in to join this conversation.
No labels
pull-request
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/go-proxmox#113
No description provided.