Skip to content

Commit f32e551

Browse files
authored
Merge pull request #94 from packethost/issue_68
fixes 68
2 parents 0198141 + 2fca5f8 commit f32e551

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packet/Device.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# -*- coding: utf-8 -*-
22
# SPDX-License-Identifier: LGPL-3.0-only
33
# from .Volume import Volume
4+
from .OperatingSystem import OperatingSystem
45

56

67
class Device:
@@ -25,7 +26,7 @@ def __init__(self, data, manager):
2526
self.always_pxe = data.get("always_pxe", False)
2627
self.storage = data.get("storage")
2728
self.customdata = data.get("customdata", None)
28-
self.operating_system = data.get("operating_system")
29+
self.operating_system = OperatingSystem(data["operating_system"])
2930
self.facility = data.get("facility")
3031
self.project = data.get("project")
3132
self.ssh_keys = data.get("ssh_keys")

0 commit comments

Comments
 (0)