From: Douglas Bagnall Date: Sun, 17 Mar 2019 01:50:44 +0000 (+1300) Subject: s4/script/rodcdns: str type doesn't need decoding X-Git-Tag: ldb-2.0.5~71 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ae1472834b3256dbe53733abecbee2129d364594;p=thirdparty%2Fsamba.git s4/script/rodcdns: str type doesn't need decoding Signed-off-by: Douglas Bagnall Reviewed-by: Andrew Bartlett --- diff --git a/source4/scripting/devel/rodcdns b/source4/scripting/devel/rodcdns index 8f1d90a4c9c..683058000b0 100755 --- a/source4/scripting/devel/rodcdns +++ b/source4/scripting/devel/rodcdns @@ -37,7 +37,7 @@ if __name__ == "__main__": name.port = opts.port name.dns_register = True dns_names.names = [ name ] - site_name = opts.site.decode('utf-8') + site_name = opts.site ret_names = w.DsrUpdateReadOnlyServerDnsRecords(site_name, 600, dns_names) print("Status: %u" % ret_names.names[0].status)