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:
parent
4b05699e66
commit
c941fac2cc
1 changed files with 4 additions and 0 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue