This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/Containers/AutomationCalculator/AutomationCalculator.js b/src/Containers/AutomationCalculator/AutomationCalculator.js | |
index 9dff49a..960f9a5 100644 | |
--- a/src/Containers/AutomationCalculator/AutomationCalculator.js | |
+++ b/src/Containers/AutomationCalculator/AutomationCalculator.js | |
@@ -275,12 +275,16 @@ export const useAutomationFormula = () => { | |
const [ totalSavings, setTotalSavings ] = useState(0); | |
const [ unfilteredData, setUnfilteredData ] = useState([]); | |
const [ formattedData, setFormattedData ] = useState([]); | |
+ const [ mangledData, setMangledData ] = useState([]); | |
const [ templatesList, setTemplatesList ] = useState([]); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import glob | |
import inspect | |
import json | |
import logging | |
import os | |
import os.path | |
import tarfile | |
import tempfile | |
import shutil | |
import requests |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import glob | |
import os | |
import re | |
def make_sentence_case(instring): | |
newstring = instring[0].upper() + instring[1:].lower() | |
return newstring.strip() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import os | |
import yaml | |
import logzero | |
from logzero import logger | |
from pprint import pprint | |
from ansibullbot.parsers.botmetadata import BotMetadataParser |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(venv) [jtanner@jtw530 ansible-bare]$ cat galaxy-plugins.sh | |
#!/bin/bash | |
rm -rf strace.out | |
rm -rf ansible_collections | |
mkdir strace.out | |
STRACE="strace -s 100000 -ffttvo strace.out/pid" | |
$STRACE ansible-galaxy collection install -p ansible_collections newswangerd.collection_demo | |
fgrep -e 'openat(' -e 'stat(' strace.out/* | fgrep 'lib/ansible' | fgrep -v '__pycache__' | fgrep -v '__init__' | cut -d\" -f2 | egrep 'py$' | sort -u | fgrep -e 'lib/ansible/plugins' -e 'lib/ansible/module' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/migrate.py b/migrate.py | |
index 13a033b..82b2cf1 100755 | |
--- a/migrate.py | |
+++ b/migrate.py | |
@@ -339,7 +339,7 @@ def copy_unit_tests(checkout_path, collection_dir, plugin_type, plugin, spec): | |
for td, tm in (os.path.split(p) for p in matching_test_modules): | |
copy_map[td]['files'].add(tm) | |
copy_map[td]['to'] = os.path.join( | |
- collection_dir, 'test', 'unit', | |
+ collection_dir, 'tests', 'unit', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# collection tree | |
ansible_collections | |
ansible_cloud | |
vmware | |
plugins | |
modules | |
soap | |
vmware_guest.py | |
rest | |
vmware_guest.py |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# http://stackoverflow.com/a/14299004 | |
import calendar | |
import datetime | |
import json | |
#import logging | |
import os | |
import re |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/lib/ansible/playbook/base.py b/lib/ansible/playbook/base.py | |
index 74f079e..e1909f8 100644 | |
--- a/lib/ansible/playbook/base.py | |
+++ b/lib/ansible/playbook/base.py | |
@@ -376,7 +376,11 @@ class FieldAttributeBase(with_metaclass(BaseMeta, object)): | |
value = getattr(self, name) | |
else: | |
# if the attribute contains a variable, template it now | |
- value = templar.template(getattr(self, name)) | |
+ try: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# unpatched | |
[jtanner@jtw530 AP-16894]$ timeout -s SIGKILL 5 /bin/sshpass -v ssh -i keys/testkey -tt testuser@el7host "sudo whoami" | |
SSHPASS searching for password prompt using match "assword" | |
SSHPASS read: Enter passphrase for key 'keys/testkey': | |
Killed | |
[jtanner@jtw530 AP-16894]$ echo $? | |
137 | |
# patched | |
[jtanner@jtw530 AP-16894]$ sshpass -v ssh -i keys/testkey -tt testuser@el7host "sudo whoami" |
NewerOlder