Giter Club home page Giter Club logo

Comments (4)

evgkrsk avatar evgkrsk commented on June 18, 2024

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.

evgkrsk avatar evgkrsk commented on June 18, 2024
@@ -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.

shencan avatar shencan commented on June 18, 2024

Thank you

from ansible-shell.

dominis avatar dominis commented on June 18, 2024

thanks guys it's now fixed in ec02e05

from ansible-shell.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.