ansible/library
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
..
cloud Stop/remove existing docker container if the specified tag is different 2014-08-26 13:36:42 -05:00
commands Make command warnings off by default to minimize surprises. 2014-08-22 16:12:48 -04:00
database Merge pull request #8419 from georgeOsdDev/escape_underscore_in_database_name 2014-08-08 14:38:51 -04:00
files Docs updates to add examples for symbolic modes 2014-08-26 09:09:08 -05:00
internal Make async jid's unique per host 2014-03-26 13:48:47 -05:00
inventory
messaging Fix version_added for node in rabbitmq modules 2014-04-08 10:40:41 -04:00
monitoring Updating version_added. 2014-08-08 14:24:57 -04:00
net_infrastructure A10 module improvements 2014-08-28 20:23:48 -05:00
network For content-disposition response header field, try to parse filename parameter even if it's not quoted. 2014-08-23 12:10:45 +09:00
notification Bumping version_added for use_ssl param in irc module 2014-08-08 19:43:20 -05:00
packaging fixes #8626 by reverting 0d8b81cd 2014-08-14 18:10:58 +02:00
source_control Documentation simplification for git module parameter 2014-07-11 08:44:29 -04:00
system Add additional checks to detect upstart services 2014-08-25 13:41:39 -05:00
utilities Removing unused name param for wait_for tcp draining classes 2014-08-26 20:36:11 -05:00
web_infrastructure Merge branch '7736' of https://github.com/kcghost/ansible into kcghost-7736 2014-08-08 19:30:04 -05:00
windows All changes referenced in PRs #8767 , #8768 , #8769 : 2014-08-29 10:39:42 +02:00