Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Fixed `service update` crashing with `KeyError: 'Template'` when given a flat YAML body without the Template wrapper
- Fixed `service update_env` and `update_labels` crashing when `OtherDockerConfig` is empty
- Fixed `tenant config` crashing with help text when `--deletevar` is not provided
- Fixed `apply` misrouting the body into the `name` parameter for subclasses whose `create` signature starts with `name` (e.g. `ssm_param`, `secret`, `aws_secret`, `configmap`); the V2 and V3 base `apply` now call `self.create(body=body)` by keyword

## [0.4.3] - 2026-03-18

Expand Down
8 changes: 4 additions & 4 deletions src/duplo_resource/ssm_param.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def name_from_body(self, body):
return body["Name"]

@Command()
def create(self,
def create(self,
name: args.NAME=None,
body: args.BODY=None,
paramtype: args.SSM_PARAM_TYPE=None,
Expand All @@ -25,7 +25,7 @@ def create(self,
```sh
duploctl ssm_param create <name> -pval <value> -ptype <String|SecureString|StringList>
```

Args:
name: The name of the SSM Parameter to create.
-ptype/--parametertype: The type of parameter to create, must be String, SecureString, or StringList
Expand All @@ -39,9 +39,9 @@ def create(self,
}
```

Returns:
Returns:
resource: The SSM Parameter object.

Raises:
DuploError: If the SSM Parameter already exists.
"""
Expand Down
4 changes: 2 additions & 2 deletions src/duplocloud/resource.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ def apply(self,
self.find(name)
return self.update(name, body)
except DuploNotFound:
return self.create(body)
return self.create(body=body)


class DuploResourceV3(DuploResource):
Expand Down Expand Up @@ -341,6 +341,6 @@ def apply(self,
self.find(name)
return self.update(name=name, body=body, patches=patches)
except DuploNotFound:
return self.create(body)
return self.create(body=body)


3 changes: 3 additions & 0 deletions src/tests/data/param.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Name: duploctl-test
Type: String
Value: testvalue
Loading