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.
ansible/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.
11 years ago
..
cache Use JSON instead of pickles for compatibility. 12 years ago
callback_plugins Remove runner_on_error callback that is never used. 12 years ago
inventory InventoryScript: better syntax checking for json stream 11 years ago
module_utils All changes referenced in PRs #8767 , #8768 , #8769 : 11 years ago
playbook Allow installation of roles from yaml roles file 11 years ago
runner Merge pull request #8793 from cchurch/powershell3_compat 11 years ago
utils Fixing up serialize_args utility function 11 years ago
__init__.py Version bump for 1.8 12 years ago
callbacks.py Slightly trim down the warnings list based on some things being pretty common 11 years ago
color.py fixed typos found by RETF rules in PY files 12 years ago
constants.py Make command warnings off by default to minimize surprises. 11 years ago
errors.py Update various copyrights. Not complete, but sufficient. 12 years ago
module_common.py Dedupe PTR record related code in rax_dns_record 12 years ago