mirror of https://github.com/ansible/ansible.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
72760f5999
This changes the get-attr function slightly, and lets the module specify whether a param is needed and auto-fails if it is not present. A module can now verify params like so:: $params = Parse-Args $args; $result = New-Object psobject; Set-Attr $result "changed" $false; $path = Get-Attr -obj $params -name path -failifempty $true -resultobj $result or $params = Parse-Args $args; $result = New-Object psobject; Set-Attr $result "changed" $false; $path = Get-Attr -obj $params -name path -failifempty $true -emptyattributefailmessage "Oh man. You forgot the main part!" -resultobj $result slight tweak in how the powershell module converts to json in order to support nested objects (allows for more complex facts, among others) This script gathers some extended facts on windows hosts in a json array attribute called "ansible_interfaces". This info is needed for some network-related modules I'm working on. Required the update to powershell.ps1 to return deeply nested json objects. |
10 years ago | |
---|---|---|
.. | ||
cloud | 10 years ago | |
commands | 10 years ago | |
database | 10 years ago | |
files | 10 years ago | |
internal | 11 years ago | |
inventory | 11 years ago | |
messaging | 11 years ago | |
monitoring | 10 years ago | |
net_infrastructure | 10 years ago | |
network | 10 years ago | |
notification | 10 years ago | |
packaging | 10 years ago | |
source_control | 11 years ago | |
system | 10 years ago | |
utilities | 10 years ago | |
web_infrastructure | 10 years ago | |
windows | 10 years ago |