mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-24 11:21:25 -07:00
Added 'script', a module that can push and insantly run a remote script. Replaces the need to copy+command.
This is a bit of a rough draft, some error handling still needs to be added.
This commit is contained in:
parent
7e2d6c0050
commit
4104478abd
5 changed files with 98 additions and 8 deletions
|
@ -29,6 +29,7 @@ import optparse
|
|||
import time
|
||||
import datetime
|
||||
import subprocess
|
||||
import traceback
|
||||
|
||||
# modules that are ok that they do not have documentation strings
|
||||
BLACKLIST_MODULES = [
|
||||
|
@ -149,11 +150,8 @@ def get_docstring(filename, verbose=False):
|
|||
doc = yaml.load(child.value.s)
|
||||
|
||||
except:
|
||||
if verbose:
|
||||
raise
|
||||
else:
|
||||
print "unable to parse %s" % filename
|
||||
|
||||
traceback.print_exc()
|
||||
print "unable to parse %s" % filename
|
||||
return doc
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue