Skip to content

Commit

Permalink
Merge pull request #16 from nokia/state-datastore-default
Browse files Browse the repository at this point in the history
State as default datastore
  • Loading branch information
hellt authored May 1, 2023
2 parents 63afaa8 + d8e17d0 commit d0201a1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions plugins/modules/get.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
- running
- state
- tools
required: true
default: state
path:
description:
- the YANG path of a datastore node
Expand Down Expand Up @@ -90,7 +90,7 @@ def main():
"datastore": {
"type": "str",
"choices": ["baseline", "candidate", "running", "state", "tools"],
"required": True,
"default": "state",
},
"yang_models": {
"type": "str",
Expand Down
2 changes: 1 addition & 1 deletion tests/playbooks/get-multiple-paths.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
- name: Get multiple paths
nokia.srlinux.get:
paths:
# skipped datastore defaults to state
- path: /system/state/hostname
datastore: state
yang_models: oc
- path: /system/information/description
datastore: state
Expand Down

0 comments on commit d0201a1

Please sign in to comment.