community.general/lib/ansible
Trond Hindenes 72760f5999 All changes referenced in PRs #8767 , #8768 , #8769 :
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.
2014-08-29 10:39:42 +02:00
..
cache Use JSON instead of pickles for compatibility. 2014-08-11 12:23:05 -04:00
callback_plugins Remove runner_on_error callback that is never used. 2014-07-01 17:02:10 -04:00
inventory InventoryScript: better syntax checking for json stream 2014-08-21 18:06:07 +02:00
module_utils All changes referenced in PRs #8767 , #8768 , #8769 : 2014-08-29 10:39:42 +02:00
playbook Allow installation of roles from yaml roles file 2014-08-21 17:15:23 -04:00
runner Merge pull request #8793 from cchurch/powershell3_compat 2014-08-28 21:25:06 -04:00
utils Fixing up serialize_args utility function 2014-08-27 10:20:07 -05:00
__init__.py Version bump for 1.8 2014-08-06 13:17:28 -05:00
callbacks.py Slightly trim down the warnings list based on some things being pretty common 2014-08-22 15:37:07 -04:00
color.py fixed typos found by RETF rules in PY files 2014-05-03 18:40:05 +02:00
constants.py Make command warnings off by default to minimize surprises. 2014-08-22 16:12:48 -04:00
errors.py
module_common.py Dedupe PTR record related code in rax_dns_record 2014-08-06 16:47:33 -05:00