Comments (4)
Seems like get_docstrings now returns tuple with 3 elements (doc, plainexamples, returndocs) and trivial one-line patch works around this issue:
--- /usr/bin/ansible-shell 2015-07-05 15:15:07.000000000 +0700
+++ /home/evg/bin/ansible-shell 2015-07-05 15:38:16.285786942 +0700
@@ -329,7 +329,7 @@
def helpdefault(self, module_name):
if module_name in self.modules:
in_path = utils.plugins.module_finder.find_plugin(module_name)
- oc, a = ansible.utils.module_docs.get_docstring(in_path)
+ oc, a, b = ansible.utils.module_docs.get_docstring(in_path)
print stringc(oc['short_description'], 'bright gray')
print 'Parameters:'
for opt in oc['options'].keys():
from ansible-shell.
@@ -356,7 +356,7 @@ class AnsibleShell(cmd.Cmd):
def module_args(self, module_name):
in_path = utils.plugins.module_finder.find_plugin(module_name)
- oc, a = ansible.utils.module_docs.get_docstring(in_path)
+ oc, a, b = ansible.utils.module_docs.get_docstring(in_path)
return oc['options'].keys()
from ansible-shell.
Thank you
from ansible-shell.
thanks guys it's now fixed in ec02e05
from ansible-shell.
Related Issues (20)
- No output from ansible's modules HOT 6
- should we turn off color prompt to work around bug? HOT 4
- Ansible Shell does not work for Ansible versions greater than 1.4.5 HOT 3
- ansible-shell has no license HOT 2
- ansible-shell should be included in core ansible HOT 6
- Request ansible-like multiple target host/group specification HOT 7
- Add support for vault files. HOT 9
- Ansible-shell not support Ansible modules HOT 2
- better result display
- dynamic inventory not working HOT 1
- update release on pypi HOT 3
- --vault-password-file parameter doesn't works
- host-pattern is ignored HOT 1
- empty enter sends the last command
- Incompatible with Ansible 2.0 HOT 3
- how to use console.py of official ansible 2.1 HOT 2
- Cannot be used after installation HOT 1
- ~/.ansible-shell.rc for settings HOT 1
- Getting an OSError HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ansible-shell.