s4-gpo: fixed display of GPO version numbers
authorAndrew Tridgell <tridge@samba.org>
Thu, 12 May 2011 20:53:26 +0000 (22:53 +0200)
committerAndrew Tridgell <tridge@samba.org>
Mon, 6 Jun 2011 02:26:10 +0000 (12:26 +1000)
source4/scripting/python/samba/netcmd/gpo.py

index 19007b361cbfcc2d32d875676bbc490378871dd4..fac91670766a532bb0f2352be39822e1f1ac3330 100644 (file)
@@ -126,7 +126,7 @@ class cmd_listall(Command):
             print("display name : %s" % m['displayName'][0])
             print("path         : %s" % m['gPCFileSysPath'][0])
             print("dn           : %s" % m.dn)
-            print("version      : %s" % attr_default(m, 'version', '0'))
+            print("version      : %s" % attr_default(m, 'versionNumber', '0'))
             print("flags        : %s" % flags_string(gpo_flags, int(attr_default(m, 'flags', 0))))
             print("")