From 5969d3b13df312a5e9734d2412ad209b06ad7bef Mon Sep 17 00:00:00 2001 From: Dominique Roux Date: Wed, 29 Jan 2020 17:04:59 +0100 Subject: [PATCH] accessed the mac class with the correct function --- uncloud/hack/vm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uncloud/hack/vm.py b/uncloud/hack/vm.py index 4caa2fe..8d7116c 100755 --- a/uncloud/hack/vm.py +++ b/uncloud/hack/vm.py @@ -82,7 +82,7 @@ class VM(object): self.mac=MAC(self.config) self.mac.create() self.vm['mac'] = self.mac - self.vm['ifname'] = "uc{}".format(self.mac.to_str_format()) + self.vm['ifname'] = "uc{}".format(self.mac.__repr__()) # FIXME: TODO: turn this into a string and THEN # .split() it later -- easier for using .format()