File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed
Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -86,14 +86,16 @@ var showCmd = &cobra.Command{
8686 fmt .Printf ("Updated at: %s\n " , time .Unix (int64 (insDsc .UpdatedAt ), 0 ))
8787 fmt .Printf ("Paid until: %s\n " , time .Unix (int64 (insDsc .PaidUntil ), 0 ))
8888
89- if proxyDomain , ok := schedulerDsc .Metadata [scheduler .MetadataKeyProxyDomain ]; ok {
90- numericMachineID := binary .BigEndian .Uint64 (machineID [:])
91- proxyDomain = fmt .Sprintf ("m%d.%s" , numericMachineID , proxyDomain )
89+ if schedulerDsc != nil {
90+ if proxyDomain , ok := schedulerDsc .Metadata [scheduler .MetadataKeyProxyDomain ]; ok {
91+ numericMachineID := binary .BigEndian .Uint64 (machineID [:])
92+ proxyDomain = fmt .Sprintf ("m%d.%s" , numericMachineID , proxyDomain )
9293
93- fmt .Printf ("Proxy:\n " )
94- fmt .Printf (" Domain: %s\n " , proxyDomain )
94+ fmt .Printf ("Proxy:\n " )
95+ fmt .Printf (" Domain: %s\n " , proxyDomain )
9596
96- showMachinePorts (manifest , proxyDomain )
97+ showMachinePorts (manifest , proxyDomain )
98+ }
9799 }
98100
99101 if len (insDsc .Metadata ) > 0 {
You can’t perform that action at this time.
0 commit comments