Skip to content

Commit

Permalink
New ModuleStub solution
Browse files Browse the repository at this point in the history
  • Loading branch information
Qalthos committed Jul 7, 2016
1 parent 72204dd commit 18738c8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/ansible/module_utils/network.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,13 @@ def disconnect(module):
module.fail_json(msg=exc.message)


class ModuleStub(object):
def __init__(self, argument_spec, fail_json):
self.params = dict()
for key, value in argument_spec.items():
self.params[key] = value.get('default')
self.fail_json = fail_json

class Command(object):

def __init__(self, command, output=None, prompt=None, response=None,
Expand Down

0 comments on commit 18738c8

Please sign in to comment.