Skip to content

Commit

Permalink
Revert the session changes
Browse files Browse the repository at this point in the history
  • Loading branch information
tcarmet committed Mar 11, 2024
1 parent 4d4051a commit be8a625
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions runner_manager/backend/vsphere.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,16 @@ class VsphereBackend(BaseBackend):
name: Literal[Backends.vsphere] = Field(default=Backends.vsphere)
config: VsphereConfig
instance_config: VsphereInstanceConfig
session = Session()

@property
def client(self) -> VsphereClient:
self.session.verify = self.config.verify_ssl
session = Session()
session.verify = self.config.verify_ssl
return create_vsphere_client(
server=self.config.server,
username=self.config.username,
password=self.config.password,
session=self.session,
session=session,
)

def get_folder(self, datacenter_name, folder_name):
Expand Down

0 comments on commit be8a625

Please sign in to comment.