You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by GitBox <gi...@apache.org> on 2022/01/28 21:45:42 UTC

[GitHub] [libcloud] Kami commented on a change in pull request #1648: Enable to set microversion in OpenStack driver

Kami commented on a change in pull request #1648:
URL: https://github.com/apache/libcloud/pull/1648#discussion_r794909130



##########
File path: libcloud/compute/drivers/openstack.py
##########
@@ -1551,7 +1561,9 @@ def create_node(
         if ex_os_scheduler_hints:
             data["os:scheduler_hints"] = ex_os_scheduler_hints
 
-        resp = self.connection.request("/servers", method="POST", data=data)
+        resp = self.connection.request(
+            "/servers", method="POST", data=data, headers=self._set_microversion()

Review comment:
       Hm, so we only want to set this header for "POST /servers" requests and nothing else? Shouldn't it be set for all the outgoing API requests?




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@libcloud.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org