Prior to this change the create commands could be used counter to the
term 'create' as a create-or-update command. IMO this violates the
principle of least surprise so make them create-only.
Signed-off-by: John Mulligan <jmulligan@redhat.com>
placement=pspec,
)
to_apply.append(cluster)
- return self._handler.apply(to_apply).squash(cluster)
+ return self._handler.apply(to_apply, create_only=True).squash(cluster)
@cli.SMBCommand('cluster rm', perm='rw')
def cluster_rm(self, cluster_id: str) -> handler.Result:
subvolume=subvolume,
),
)
- return self._handler.apply([share]).one()
+ return self._handler.apply([share], create_only=True).one()
@cli.SMBCommand('share rm', perm='rw')
def share_rm(self, cluster_id: str, share_id: str) -> handler.Result: