mirror of https://github.com/portainer/portainer
fix(api): set templatesURL in settings when using the --templates flag
Re-add the CLI for external template managementpull/2214/head
parent
4b05699e66
commit
c941fac2cc
|
@ -178,6 +178,10 @@ func initSettings(settingsService portainer.SettingsService, flags *portainer.CL
|
||||||
SnapshotInterval: *flags.SnapshotInterval,
|
SnapshotInterval: *flags.SnapshotInterval,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if *flags.Templates != "" {
|
||||||
|
settings.TemplatesURL = *flags.Templates
|
||||||
|
}
|
||||||
|
|
||||||
if *flags.Labels != nil {
|
if *flags.Labels != nil {
|
||||||
settings.BlackListedLabels = *flags.Labels
|
settings.BlackListedLabels = *flags.Labels
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue