|
88 | 88 | description:
|
89 | 89 | - The storage box's login name.
|
90 | 90 | - Note that this is copied from RV(storageboxes[].username) in case O(hetzner_token) is specified.
|
| 91 | + - B(This return value is deprecated and will be removed from community.hrobot 3.0.0.) |
| 92 | + If you are using ansible-core 2.19 or newer, you will see a deprecation message when using this return value. |
91 | 93 | type: str
|
92 | 94 | sample: u12345
|
93 | 95 | returned: success
|
|
200 | 202 | description:
|
201 | 203 | - Total amount of MB available.
|
202 | 204 | - Note that this is copied from RV(storageboxes[].storage_box_type.size) in case O(hetzner_token) is specified.
|
| 205 | + - B(This return value is deprecated and will be removed from community.hrobot 3.0.0.) |
| 206 | + If you are using ansible-core 2.19 or newer, you will see a deprecation message when using this return value. |
203 | 207 | type: int
|
204 | 208 | sample: 10240000
|
205 | 209 | returned: when O(full_info=true), or O(hetzner_token) is specified
|
206 | 210 | disk_usage:
|
207 | 211 | description:
|
208 | 212 | - The amount of MB in use.
|
209 | 213 | - Note that this is copied from RV(storageboxes[].stats.size) in case O(hetzner_token) is specified.
|
| 214 | + - B(This return value is deprecated and will be removed from community.hrobot 3.0.0.) |
| 215 | + If you are using ansible-core 2.19 or newer, you will see a deprecation message when using this return value. |
210 | 216 | type: int
|
211 | 217 | sample: 900
|
212 | 218 | returned: when O(full_info=true), or O(hetzner_token) is specified
|
213 | 219 | disk_usage_data:
|
214 | 220 | description:
|
215 | 221 | - The amount of MB used by files.
|
216 | 222 | - Note that this is copied from RV(storageboxes[].stats.size_data) in case O(hetzner_token) is specified.
|
| 223 | + - B(This return value is deprecated and will be removed from community.hrobot 3.0.0.) |
| 224 | + If you are using ansible-core 2.19 or newer, you will see a deprecation message when using this return value. |
217 | 225 | type: int
|
218 | 226 | sample: 500
|
219 | 227 | returned: when O(full_info=true), or O(hetzner_token) is specified
|
220 | 228 | disk_usage_snapshots:
|
221 | 229 | description:
|
222 | 230 | - The amount of MB used by snapshots.
|
223 | 231 | - Note that this is copied from RV(storageboxes[].stats.size_snapshots) in case O(hetzner_token) is specified.
|
| 232 | + - B(This return value is deprecated and will be removed from community.hrobot 3.0.0.) |
| 233 | + If you are using ansible-core 2.19 or newer, you will see a deprecation message when using this return value. |
224 | 234 | type: int
|
225 | 235 | sample: 400
|
226 | 236 | returned: when O(full_info=true), or O(hetzner_token) is specified
|
227 | 237 | webdav:
|
228 | 238 | description:
|
229 | 239 | - Whether WebDAV is active.
|
230 | 240 | - Note that this is copied from RV(storageboxes[].access_settings.webdav_enabled) in case O(hetzner_token) is specified.
|
| 241 | + - B(This return value is deprecated and will be removed from community.hrobot 3.0.0.) |
| 242 | + If you are using ansible-core 2.19 or newer, you will see a deprecation message when using this return value. |
231 | 243 | type: bool
|
232 | 244 | sample: true
|
233 | 245 | returned: when O(full_info=true), or O(hetzner_token) is specified
|
234 | 246 | samba:
|
235 | 247 | description:
|
236 | 248 | - Whether SAMBA is active.
|
237 | 249 | - Note that this is copied from RV(storageboxes[].access_settings.samba_enabled) in case O(hetzner_token) is specified.
|
| 250 | + - B(This return value is deprecated and will be removed from community.hrobot 3.0.0.) |
| 251 | + If you are using ansible-core 2.19 or newer, you will see a deprecation message when using this return value. |
238 | 252 | type: bool
|
239 | 253 | sample: true
|
240 | 254 | returned: when O(full_info=true), or O(hetzner_token) is specified
|
241 | 255 | ssh:
|
242 | 256 | description:
|
243 | 257 | - Whether SSH is active.
|
244 | 258 | - Note that this is copied from RV(storageboxes[].access_settings.ssh_enabled) in case O(hetzner_token) is specified.
|
| 259 | + - B(This return value is deprecated and will be removed from community.hrobot 3.0.0.) |
| 260 | + If you are using ansible-core 2.19 or newer, you will see a deprecation message when using this return value. |
245 | 261 | type: bool
|
246 | 262 | sample: true
|
247 | 263 | returned: when O(full_info=true), or O(hetzner_token) is specified
|
248 | 264 | external_reachability:
|
249 | 265 | description:
|
250 | 266 | - Whether the storage box is reachable externally.
|
251 | 267 | - Note that this is copied from RV(storageboxes[].access_settings.reachable_externally) in case O(hetzner_token) is specified.
|
| 268 | + - B(This return value is deprecated and will be removed from community.hrobot 3.0.0.) |
| 269 | + If you are using ansible-core 2.19 or newer, you will see a deprecation message when using this return value. |
252 | 270 | type: bool
|
253 | 271 | sample: true
|
254 | 272 | returned: when O(full_info=true), or O(hetzner_token) is specified
|
255 | 273 | zfs:
|
256 | 274 | description:
|
257 | 275 | - Shows whether the ZFS directory is visible.
|
258 | 276 | - Note that this is copied from RV(storageboxes[].access_settings.zfs_enabled) in case O(hetzner_token) is specified.
|
| 277 | + - B(This return value is deprecated and will be removed from community.hrobot 3.0.0.) |
| 278 | + If you are using ansible-core 2.19 or newer, you will see a deprecation message when using this return value. |
259 | 279 | type: bool
|
260 | 280 | sample: false
|
261 | 281 | returned: when O(full_info=true), or O(hetzner_token) is specified
|
@@ -556,7 +576,11 @@ def add_hrobot_compat_shim(storagebox):
|
556 | 576 | value = storagebox
|
557 | 577 | for src in source:
|
558 | 578 | value = value[src]
|
559 |
| - result[dest] = value |
| 579 | + result[dest] = deprecate_value( |
| 580 | + value, |
| 581 | + "The return value `{0}` is deprecated; use `{1}` instead.".format(dest, ".".join(source)), |
| 582 | + version="3.0.0", |
| 583 | + ) |
560 | 584 | return result
|
561 | 585 |
|
562 | 586 |
|
|
0 commit comments