Skip to content
Snippets Groups Projects

transparently pass through verbs

Closed Karel van Klink requested to merge feature/make-verb-transparent into develop
2 files
+ 9
4
Compare changes
  • Side-by-side
  • Inline
Files
2
+ 4
1
@@ -33,6 +33,9 @@ class NodeProvisioningParams(BaseModel):
#: defaults to ``True`` for obvious reasons, also making it an optional
#: parameter.
dry_run: Optional[bool] = True
#: An Ansible verb that dictates the action that should be taken with the
#: playbook specifically
verb: str
@router.post('/')
@@ -50,7 +53,7 @@ async def provision_node(params: NodeProvisioningParams) \
extra_vars = {
'wfo_device_json': params.subscription,
'dry_run': str(params.dry_run),
'verb': 'deploy',
'verb': params.verb,
'commit_comment': 'Base config deployed with WFO/LSO & Ansible'
}
Loading