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

Re-add the CLI for external template management
pull/2214/head
William Easton 2018-08-24 06:08:46 -05:00 committed by Anthony Lapenna
parent 4b05699e66
commit c941fac2cc
1 changed files with 4 additions and 0 deletions

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 {