summaryrefslogtreecommitdiff
path: root/cloudinit/config
diff options
context:
space:
mode:
authorHarm Weites <harm@weites.com>2013-12-14 19:11:47 +0000
committerHarm Weites <harm@weites.com>2013-12-14 19:11:47 +0000
commit43b88392a14f6ab9395313353e28e60acc85ab75 (patch)
tree0c91466c671fec63e8d939449ba3e42523a2815e /cloudinit/config
parent45a3ef2157c21155a7d0a286849db330e767608d (diff)
downloadvyos-cloud-init-43b88392a14f6ab9395313353e28e60acc85ab75.tar.gz
vyos-cloud-init-43b88392a14f6ab9395313353e28e60acc85ab75.zip
change: Use util.system_info().
Diffstat (limited to 'cloudinit/config')
-rw-r--r--cloudinit/config/cc_growpart.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/cloudinit/config/cc_growpart.py b/cloudinit/config/cc_growpart.py
index 81de4c37..07556f03 100644
--- a/cloudinit/config/cc_growpart.py
+++ b/cloudinit/config/cc_growpart.py
@@ -22,7 +22,6 @@ import os
import os.path
import re
import stat
-import sys
from cloudinit import log as logging
from cloudinit.settings import PER_ALWAYS
@@ -188,7 +187,7 @@ def device_part_info(devpath):
# FreeBSD doesn't know of sysfs so just get everything we need from
# the device, like /dev/vtbd0p2.
- if sys.platform.startswith('freebsd'):
+ if util.system_info()["platform"].startswith('FreeBSD'):
m = re.search('^(/dev/.+)p([0-9])$', devpath)
return (m.group(1), m.group(2))