Skip to content

Commit 6fa9c53

Browse files
committed
fixed import bugs
1 parent 519c493 commit 6fa9c53

4 files changed

Lines changed: 8 additions & 8 deletions

File tree

package/cloudshell/cm/ansible/ansible_shell.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,13 @@
1313
from cloudshell.cm.ansible.domain.http_request_service import HttpRequestService
1414
from cloudshell.cm.ansible.domain.inventory_file import InventoryFile
1515
from cloudshell.cm.ansible.domain.output.ansible_result import AnsibleResult
16-
from cloudshell.cm.ansible.domain.playbook_downloader import PlaybookDownloader, HttpAuth
16+
from cloudshell.cm.ansible.domain.playbook_downloader import PlaybookDownloader
1717
from cloudshell.cm.ansible.domain.temp_folder_scope import TempFolderScope
1818
from cloudshell.cm.ansible.domain.zip_service import ZipService
1919
from cloudshell.core.context.error_handling_context import ErrorHandlingContext
2020
from cloudshell.shell.core.session.cloudshell_session import CloudShellSessionContext
2121
from cloudshell.shell.core.session.logging_session import LoggingSessionContext
22+
from domain.models import HttpAuth
2223

2324

2425
class AnsibleShell(object):

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import requests
22
from requests import Response
33
from Helpers.gitlab_api_url_validator import is_gitlab_rest_url
4-
from playbook_downloader import HttpAuth
4+
from models import HttpAuth
55

66

77
class HttpRequestService(object):
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
class HttpAuth(object):
2+
def __init__(self, username, password):
3+
self.username = username
4+
self.password = password

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

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,7 @@
44
from cloudshell.cm.ansible.domain.http_request_service import HttpRequestService
55
from file_system_service import FileSystemService
66
from logging import Logger
7-
8-
9-
class HttpAuth(object):
10-
def __init__(self, username, password):
11-
self.username = username
12-
self.password = password
7+
from models import HttpAuth
138

149

1510
class PlaybookDownloader(object):

0 commit comments

Comments
 (0)