This is an automated email from the ASF dual-hosted git repository.

tomaz pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/libcloud.git

commit daddbae3fe699dcc708e2f7585a5d6865875ce7a
Author: Tomaz Muraus <to...@tomaz.me>
AuthorDate: Thu Apr 18 18:16:16 2024 +0200

    Remove disk and disk_size method from the create_node() method in
    Equinix compute driver.
    
    Corrresponding volume management methods have been removed so those
    arguments don't make sense anymore.
---
 libcloud/compute/drivers/equinixmetal.py | 9 ---------
 1 file changed, 9 deletions(-)

diff --git a/libcloud/compute/drivers/equinixmetal.py 
b/libcloud/compute/drivers/equinixmetal.py
index 0d5c71c84..90018e877 100644
--- a/libcloud/compute/drivers/equinixmetal.py
+++ b/libcloud/compute/drivers/equinixmetal.py
@@ -282,8 +282,6 @@ def _list_async(driver):
         ex_project_id=None,
         ip_addresses=[],
         cloud_init=None,
-        disk=None,
-        disk_size=0,
         **kwargs,
     ):
         """
@@ -336,13 +334,6 @@ def _list_async(driver):
             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):

Reply via email to