Skip to content

Commit 333dd43

Browse files
author
Elias Nygren
committed
make password delivery default to none on server creation
1 parent d204c6e commit 333dd43

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

upcloud/server.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,10 +216,11 @@ def prepare_post_body(self):
216216
if hasattr(self, "boot_order"): body["server"]["boot_order"] = self.boot_order
217217
if hasattr(self, "firewall"): body["server"]["firewall"] = self.firewall
218218
if hasattr(self, "nic_model"): body["server"]["nic_model"] = self.nic_model
219-
if hasattr(self, "password_delivery"): body["server"]["password_delivery"] = self.password_delivery
220219
if hasattr(self, "timezone"): body["server"]["timezone"] = self.timezone
221220
if hasattr(self, "video_model"): body["server"]["video_model"] = self.video_model
222221
if hasattr(self, "vnc_password"): body["server"]["vnc_password"] = self.vnc_password
222+
if hasattr(self, "password_delivery"): body["server"]["password_delivery"] = self.password_delivery
223+
else: body["server"]["password_delivery"] = "none"
223224

224225

225226
body["server"]["storage_devices"] = {

0 commit comments

Comments
 (0)