Skip to content

Commit

Permalink
Remove disk and disk_size method from the create_node() method in
Browse files Browse the repository at this point in the history
Equinix compute driver.

Corrresponding volume management methods have been removed so those
arguments don't make sense anymore.
  • Loading branch information
Kami committed Apr 18, 2024
1 parent 412e1f4 commit daddbae
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions libcloud/compute/drivers/equinixmetal.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,8 +282,6 @@ def create_node(
ex_project_id=None,
ip_addresses=[],
cloud_init=None,
disk=None,
disk_size=0,
**kwargs,
):
"""
Expand Down Expand Up @@ -336,13 +334,6 @@ def create_node(
raise ValueError("Failed to create node: %s" % (error_message))
node = self._to_node(data=data.object)

if disk:
self.attach_volume(node, disk)

if disk_size:
volume = self.create_volume(size=disk_size, location=location)
self.attach_volume(node, volume)

return node

def reboot_node(self, node):
Expand Down

0 comments on commit daddbae

Please sign in to comment.