Submitted by yngens on Tue, 09/16/2014 - 22:48
This request is kind of related to https://virtualmin.com/node/34269, because the issue we are facing is coming from that issue. Guess, we have deployed a CentOS guest and updated an end-user profile with OS-related information, but later on the guest system was re-imaged with Ubuntu - now this time our script couldn't update OS information simply because "OS" variable never returned and the end-user continues to see CentOS instead of Ubuntu, which is actually installed on his system. Would be very nice, if "cloudmin list-systems ... --multiline" command returnedall available values regardless if they are empty or not, like:
ID: 1403913559296370
Unix hostname: host.domain.com
IP address: xxx.xxx.xx.xx
MAC address: 00:40:54:03:43:ea
Description:
Type: KVM
Type code: kvm
Status: SSH
Status code: nowebmin
Status changed: 16/Sep/2014 11:15
OS:
OS code:
Webmin version:
Webmin OS type:
Webmin OS version:
Virtualmin version:
Webmin URL:
....
etc
In this case, external scripts interacting with Cloudmin API would have precise updates.
Status:
Closed (works as designed)
Comments
Submitted by JamieCameron on Tue, 09/16/2014 - 23:36 Comment #1
I don't think we'll do that - otherwise it would be impossible to tell the difference between a field that is set to an empty string, and one for which the value isn't know. You'd be better off adjusting your script to cope with missing fields.