taers232c / GAMADV-XTD3

Command line tool to manage Google Workspace
691 stars 86 forks source link

[BUG] gam info resoldcustomer <customerId> [formatjson] inconsistent behaviour #348

Closed jay-eleven closed 1 year ago

jay-eleven commented 1 year ago

Hi Ross!

While playing around the gam info resoldcustomer command I noticed a minor inconsistency.

Given the following customer contact information: image First, without formatjson:

jay@cloudshell:~$ gam info resoldcustomer C0xxxxxxx
Customer ID: C0xxxxxxx
Customer Domain: domain.com
...
Phone: +1 4158000000
Customer Alternate Email:

The primary admin email (admin@domain.com) is missing.

Now with formatjson:

jay@cloudshell:~$ gam info resoldcustomer C0xxxxxxx formatjson
{"alternateEmail": "", 
"customerDomain": "domain.com", 
... , 
"customerId": "C0xxxxxxx", 
"customerType": "team", 
"phoneNumber": "+1 4158000000", 
... , 
"primaryAdmin": {"primaryEmail": "admin@domain.com"}, 
...

The primary admin email (admin@domain.com) is shown.

Nothing too serious.

taers232c commented 1 year ago

Thanks, will fix this morning.

Ross

Ross Scroggs @.***

On Mar 23, 2023, at 4:54 AM, Jay @.***> wrote:

Hi Ross!

While playing around the gam info resoldcustomer command I noticed a minor inconsistency.

Given the following customer contact information: https://user-images.githubusercontent.com/46608557/227194263-f0b5e1bb-a2ff-4510-8441-db721a2dc7ee.png First, without formatjson:

@.:~$ gam info resoldcustomer C0xxxxxxx Customer ID: C0xxxxxxx Customer Domain: domain.com ... Phone: +1 4158000000 Customer Alternate Email: The primary admin email @. @.***>) is missing.

Now with formatjson:

@.:~$ gam info resoldcustomer C0xxxxxxx formatjson {"alternateEmail": "", "customerDomain": "domain.com", ... , "customerId": "C0xxxxxxx", "customerType": "team", "phoneNumber": "+1 4158000000", ... , "primaryAdmin": {"primaryEmail": @."}, ... The primary admin email @. @.>) is shown.

Nothing too serious.

— Reply to this email directly, view it on GitHub https://github.com/taers232c/GAMADV-XTD3/issues/348, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACCTYL2KUCRQESCBLY3WYRLW5Q2ZFANCNFSM6AAAAAAWFC3Y7Q. You are receiving this because you are subscribed to this thread.

taers232c commented 1 year ago

Fixed in 6.52.03

Thanks

jay-eleven commented 1 year ago

Fixed!

Thanks Ross.