1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-24 07:49:41 +02:00

fix(api): set templatesURL in settings when using the --templates flag

Re-add the CLI for external template management
This commit is contained in:
William Easton 2018-08-24 06:08:46 -05:00 committed by Anthony Lapenna
parent 4b05699e66
commit c941fac2cc

View file

@ -178,6 +178,10 @@ func initSettings(settingsService portainer.SettingsService, flags *portainer.CL
SnapshotInterval: *flags.SnapshotInterval,
}
if *flags.Templates != "" {
settings.TemplatesURL = *flags.Templates
}
if *flags.Labels != nil {
settings.BlackListedLabels = *flags.Labels
} else {