summaryrefslogtreecommitdiff
path: root/cloudinit/distros
diff options
context:
space:
mode:
authorDaniel Watkins <oddbloke@ubuntu.com>2020-03-14 08:31:33 -0400
committerGitHub <noreply@github.com>2020-03-14 06:31:33 -0600
commit309e9a3cb33a16721d87650f9c1b50709e507356 (patch)
treec3d1d4d3eaae35bde65d74bd302e94aedfd17872 /cloudinit/distros
parent727f38ed16e1efbfafbce99ca5a6ff6d62628302 (diff)
downloadvyos-cloud-init-309e9a3cb33a16721d87650f9c1b50709e507356.tar.gz
vyos-cloud-init-309e9a3cb33a16721d87650f9c1b50709e507356.zip
util/netbsd: drop six usage (#252)
Drop remaining python six usage
Diffstat (limited to 'cloudinit/distros')
-rw-r--r--cloudinit/distros/netbsd.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/cloudinit/distros/netbsd.py b/cloudinit/distros/netbsd.py
index 353eb671..96794d76 100644
--- a/cloudinit/distros/netbsd.py
+++ b/cloudinit/distros/netbsd.py
@@ -5,7 +5,6 @@
import crypt
import os
import platform
-import six
import cloudinit.distros.bsd
from cloudinit import log as logging
@@ -46,8 +45,7 @@ class Distro(cloudinit.distros.bsd.BSD):
}
for key, val in kwargs.items():
- if (key in adduser_opts and val and
- isinstance(val, six.string_types)):
+ if key in adduser_opts and val and isinstance(val, str):
adduser_cmd.extend([adduser_opts[key], val])
elif key in adduser_flags and val: