Skip to content

Remove StopModules from returned template import metadata #21206

@Emyrk

Description

@Emyrk

Template imports return the modules found in both start and stop transitions.

repeated provisioner.Module start_modules = 6;
repeated provisioner.Module stop_modules = 7;

start & stop modules will never be different as count is ignored when downloading modules.

StopModules & StartModules should be moved to just modules.


Once #21064 is merged, the module source will be the same for both.

// TODO: These are defined as different, but can they be?
// Terraform downloads modules regardless of `count`, so this should be the same
StartModules: initResp.Modules,
StopModules: initResp.Modules,

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions