Require access to Still via method
This commit adds a safeguard to accessing the still from a specific component by requiring access via the component.GetStill method.
This commit is contained in:
parent
81fa84c244
commit
8235ea9105
63 changed files with 288 additions and 197 deletions
|
|
@ -36,10 +36,11 @@ func (control *Config) Backup(scontext *component.StagingContext) error {
|
|||
|
||||
// backupfiles lists the files to be backed up.
|
||||
func (control *Config) backupFiles() []string {
|
||||
config := component.GetStill(control).Config
|
||||
return []string{
|
||||
control.Config.ConfigPath,
|
||||
control.Config.Paths.ExecutablePath(),
|
||||
control.Config.Paths.OverridesJSON,
|
||||
control.Config.Paths.ResolverBlocks,
|
||||
config.ConfigPath,
|
||||
config.Paths.ExecutablePath(),
|
||||
config.Paths.OverridesJSON,
|
||||
config.Paths.ResolverBlocks,
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue