Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion wrapanapi/systems/container/podman.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
from abc import ABCMeta
from datetime import datetime
from functools import cached_property

from podman import PodmanClient
from proto.utils import cached_property

from wrapanapi.entities.base import Entity
from wrapanapi.systems.base import System
Expand Down
2 changes: 1 addition & 1 deletion wrapanapi/systems/msazure.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

import os
from datetime import datetime, timedelta
from functools import cached_property

import pytz
from azure.core.exceptions import HttpResponseError
Expand All @@ -18,7 +19,6 @@
from azure.mgmt.resource.subscriptions.models import SubscriptionState
from azure.mgmt.storage import StorageManagementClient
from azure.storage.blob import BlobServiceClient
from cached_property import cached_property
from dateutil import parser
from msrestazure.azure_exceptions import CloudError
from wait_for import wait_for
Expand Down
2 changes: 1 addition & 1 deletion wrapanapi/systems/scvmm.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@
import re
import time
from datetime import datetime
from functools import cached_property
from textwrap import dedent

import pytz
import tzlocal
import winrm
from cached_property import cached_property
from wait_for import wait_for

from wrapanapi.entities import Template, TemplateMixin, Vm, VmMixin, VmState
Expand Down
7 changes: 3 additions & 4 deletions wrapanapi/systems/virtualcenter.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,9 @@
import time
from datetime import datetime
from distutils.version import LooseVersion
from functools import partial
from functools import cached_property, partial

import pytz
from cached_property import threaded_cached_property
from pyVim.connect import Disconnect, SmartConnect
from pyVmomi import vim, vmodl
from wait_for import TimedOutError, wait_for
Expand Down Expand Up @@ -995,13 +994,13 @@ def _create_service_instance(self):
self._start_keepalive()
return si

@threaded_cached_property
@cached_property
def service_instance(self):
"""An instance of the service"""
self.logger.debug("Attempting to initiate vCenter service instance")
return self._create_service_instance()

@threaded_cached_property
@cached_property
def content(self):
self.logger.debug("calling RetrieveContent()... this might take awhile")
return self.service_instance.RetrieveContent()
Expand Down