@@ -411,8 +411,12 @@ func (d *domainCLIImpl) DescribeDomain(c *cli.Context) {
411
411
ErrorAndExit (fmt .Sprintf ("Domain %s does not exist." , domainName ), err )
412
412
}
413
413
414
+ clusters := "N/A, Not a global domain"
415
+ if resp .IsGlobalDomain {
416
+ clusters = clustersToString (resp .ReplicationConfiguration .Clusters )
417
+ }
414
418
var formatStr = "Name: %v\n UUID: %v\n Description: %v\n OwnerEmail: %v\n DomainData: %v\n Status: %v\n RetentionInDays: %v\n " +
415
- "EmitMetrics: %v\n ActiveClusterName: %v\n Clusters: %v\n HistoryArchivalStatus: %v\n "
419
+ "EmitMetrics: %v\n IsGlobal(XDC)Domain: %v \ n ActiveClusterName: %v\n Clusters: %v\n HistoryArchivalStatus: %v\n "
416
420
descValues := []interface {}{
417
421
resp .DomainInfo .GetName (),
418
422
resp .DomainInfo .GetUUID (),
@@ -422,8 +426,9 @@ func (d *domainCLIImpl) DescribeDomain(c *cli.Context) {
422
426
resp .DomainInfo .GetStatus (),
423
427
resp .Configuration .GetWorkflowExecutionRetentionPeriodInDays (),
424
428
resp .Configuration .GetEmitMetric (),
429
+ resp .IsGlobalDomain ,
425
430
resp .ReplicationConfiguration .GetActiveClusterName (),
426
- clustersToString ( resp . ReplicationConfiguration . Clusters ) ,
431
+ clusters ,
427
432
resp .Configuration .GetHistoryArchivalStatus ().String (),
428
433
}
429
434
if resp .Configuration .GetHistoryArchivalURI () != "" {
0 commit comments