equal
deleted
inserted
replaced
74 |
74 |
75 } |
75 } |
76 |
76 |
77 // Load configuration, will register if none is found |
77 // Load configuration, will register if none is found |
78 cnf, err = LoadConfig(instanceName) |
78 cnf, err = LoadConfig(instanceName) |
79 if err != nil { |
79 if err == nil && cnf != nil { |
|
80 instance = &gondole.Client{ |
|
81 ID: cnf.ID, |
|
82 InstanceURL: cnf.InstanceURL, |
|
83 APIBase: cnf.APIBase, |
|
84 Name: cnf.Name, |
|
85 Secret: cnf.BearerToken, |
|
86 } |
|
87 } else { |
80 // Nothing exist yet |
88 // Nothing exist yet |
81 /* |
89 /* |
82 defName := Config{ |
90 defName := Config{ |
83 Default: instanceName, |
91 Default: instanceName, |
84 Auth: "basic", |
92 Auth: "basic", |