osbuild/skopeo: reverse the constructor args
Put the path (which becomes an option) first and the inputs second. This is more in line with other stage constructors.
This commit is contained in:
parent
069021093c
commit
dfae9fbefb
2 changed files with 2 additions and 2 deletions
|
|
@ -352,7 +352,7 @@ func (p *OS) serialize() osbuild.Pipeline {
|
|||
pipeline.AddStage(osbuild.NewContainersStorageConfStage(containerStoreOpts))
|
||||
}
|
||||
|
||||
skopeo := osbuild.NewSkopeoStage(images, storagePath)
|
||||
skopeo := osbuild.NewSkopeoStage(storagePath, images)
|
||||
pipeline.AddStage(skopeo)
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ type SkopeoStageOptions struct {
|
|||
|
||||
func (o SkopeoStageOptions) isStageOptions() {}
|
||||
|
||||
func NewSkopeoStage(images ContainersInput, path string) *Stage {
|
||||
func NewSkopeoStage(path string, images ContainersInput) *Stage {
|
||||
|
||||
inputs := ContainersInputs{
|
||||
"images": images,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue