Skip to content

Commit f7bdb58

Browse files
sajaganalhercot
authored andcommitted
[ignore] Fixed ND backup module remote_location attribute description
1 parent c427212 commit f7bdb58

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

plugins/modules/nd_backup.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,7 @@
5757
remote_location:
5858
description:
5959
- The name of the remote storage location.
60-
- Use O(remote_location="") to create ND local backup.
6160
- This parameter is only supported on ND v3.2.1 and later.
62-
default: ""
6361
type: str
6462
state:
6563
description:
@@ -144,7 +142,7 @@ def main():
144142
encryption_key=dict(type="str", no_log=True),
145143
file_location=dict(type="str", aliases=["local_path", "path"]),
146144
backup_key=dict(type="str", no_log=False),
147-
remote_location=dict(type="str", default=""),
145+
remote_location=dict(type="str"),
148146
backup_type=dict(type="str", choices=["config_only", "full"], aliases=["type"]),
149147
state=dict(type="str", default="backup", choices=["backup", "download", "query", "absent"]),
150148
)

tests/integration/targets/nd_backup/tasks/main.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,12 +81,12 @@
8181
ansible.builtin.assert:
8282
that:
8383
- cm_add_local_backup is changed
84-
- cm_add_local_backup.current.destination == ""
84+
- cm_add_local_backup.current.destination is not defined
8585
- cm_add_local_backup.current.encryptionKey is defined
8686
- cm_add_local_backup.current.name == "localbackup"
8787
- cm_add_local_backup.current.type == "config-only"
8888
- cm_add_local_backup.previous == {}
89-
- cm_add_local_backup.proposed.destination == ""
89+
- cm_add_local_backup.proposed.destination is not defined
9090
- cm_add_local_backup.proposed.encryptionKey is defined
9191
- cm_add_local_backup.proposed.name == "localbackup"
9292
- cm_add_local_backup.proposed.type == "config-only"
@@ -100,7 +100,7 @@
100100
- add_local_backup.current.type == "config-only"
101101
- add_local_backup.current.user is defined
102102
- add_local_backup.previous == {}
103-
- add_local_backup.proposed.destination == ""
103+
- add_local_backup.proposed.destination is not defined
104104
- add_local_backup.proposed.encryptionKey is defined
105105
- add_local_backup.proposed.name == "localbackup"
106106
- add_local_backup.proposed.type == "config-only"

0 commit comments

Comments
 (0)