Skip to content

Commit

Permalink
fix: Override OpenNebula constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
sfayer committed Oct 18, 2023
1 parent d4b5450 commit f7116ab
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/DIRAC/Resources/Computing/CloudProviders/OpenNebula.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

from libcloud.utils.py3 import ET
from libcloud.compute.drivers.opennebula import OpenNebulaNodeDriver
from libcloud.compute.base import NodeState
from libcloud.compute.base import NodeDriver, NodeState
from libcloud.compute.base import NodeImage, NodeSize, StorageVolume
from libcloud.common.base import ConnectionUserAndKey, XmlResponse
from libcloud.common.types import LibcloudError
Expand Down Expand Up @@ -98,6 +98,9 @@ class OpenNebula_6_0_NodeDriver(OpenNebulaNodeDriver):
# 11: Cloning Failure
}

def __new__(cls, *args, **kwargs):
return super(NodeDriver, cls).__new__(cls)

def create_node(self, name, size, image=None, network=None, context=None,
ex_onhold=False, ex_tmpl_network=True):
tmpl_id = None
Expand Down

0 comments on commit f7116ab

Please sign in to comment.