Skip to content

Commit ce244ce

Browse files
committed
removed authentication on requests call
1 parent 318adf2 commit ce244ce

7 files changed

Lines changed: 31 additions & 1 deletion

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,4 @@ cloudshell_cm_ansible.egg-info/
99
package/cloudshell_cm_ansible.egg-info/
1010
drivers/ansible_shell.zip
1111
*.zip
12+
dist/

drivers/ansible_shellPackage/Resource Drivers - Python/Ansible Shell Driver/__init__.py

Whitespace-only changes.
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
from cloudshell.shell.core.resource_driver_interface import ResourceDriverInterface
2+
from cloudshell.cm.ansible.ansible_shell import AnsibleShell
3+
4+
5+
class AnsibleShellDriver(ResourceDriverInterface):
6+
def cleanup(self):
7+
pass
8+
9+
def __init__(self):
10+
self.ansible_shell = AnsibleShell()
11+
12+
def initialize(self, context):
13+
pass
14+
15+
def execute_playbook(self, context, ansible_configuration_json, cancellation_context):
16+
return self.ansible_shell.execute_playbook(context, ansible_configuration_json, cancellation_context)
17+
18+
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<Driver Description="" MainClass="driver.AnsibleShellDriver" Name="Ansible Shell Driver" Version="1.4.0">
2+
<Layout>
3+
<Category Name="General">
4+
<Command Description="" DisplayName="Execute Playbook" EnableCancellation="true" Name="execute_playbook" Tags="allow_unreserved" />
5+
</Category>
6+
</Layout>
7+
</Driver>
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
cloudshell-shell-core>=3.1.0,<3.2.0
2+
cloudshell-cm-ansible>=1.4.0,<1.5.0
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
1.4.0

package/cloudshell/cm/ansible/domain/http_request_service.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@
33

44
class HttpRequestService(object):
55
def get_response(self, url, auth):
6-
return requests.get(url, auth=(auth.username, auth.password) if auth else None, stream=True)
6+
# return requests.get(url, auth=(auth.username, auth.password) if auth else None, stream=True)
7+
return requests.get(url, auth=(auth.username, auth.password) if auth else None, stream=True, verify=False)

0 commit comments

Comments
 (0)