Skip to content

Commit cac946c

Browse files
committed
comments resolved:
1 parent eb0ffce commit cac946c

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

main.go

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -145,11 +145,13 @@ func main() {
145145
// updates the demo profile for existing users
146146
_, exists := previousConfig.Profiles["demo"]
147147
if exists {
148-
conf := config.Config{
149-
Profiles: map[string]config.Profile{"demo": defaultInitialProfile()},
150-
DefaultProfile: "demo",
148+
conf := config.Profile{
149+
URL: "http://demo.parseable.com",
150+
Username: "admin",
151+
Password: "admin",
151152
}
152-
config.WriteConfigToFile(&conf)
153+
previousConfig.Profiles["demo"] = conf
154+
config.WriteConfigToFile(previousConfig)
153155
}
154156
}
155157

0 commit comments

Comments
 (0)