summaryrefslogtreecommitdiff
path: root/cloudinit/distros/openbsd.py
diff options
context:
space:
mode:
Diffstat (limited to 'cloudinit/distros/openbsd.py')
-rw-r--r--cloudinit/distros/openbsd.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/cloudinit/distros/openbsd.py b/cloudinit/distros/openbsd.py
index ca094156..07c76530 100644
--- a/cloudinit/distros/openbsd.py
+++ b/cloudinit/distros/openbsd.py
@@ -7,6 +7,7 @@ import platform
import cloudinit.distros.netbsd
from cloudinit import log as logging
+from cloudinit import subp
from cloudinit import util
LOG = logging.getLogger(__name__)
@@ -27,7 +28,7 @@ class Distro(cloudinit.distros.netbsd.NetBSD):
def lock_passwd(self, name):
try:
- util.subp(['usermod', '-p', '*', name])
+ subp.subp(['usermod', '-p', '*', name])
except Exception:
util.logexc(LOG, "Failed to lock user %s", name)
raise