python/tests/dnscmd: don't use undefined name
authorDouglas Bagnall <douglas.bagnall@catalyst.net.nz>
Thu, 11 Oct 2018 01:44:49 +0000 (14:44 +1300)
committerDouglas Bagnall <dbagnall@samba.org>
Thu, 1 Nov 2018 04:08:11 +0000 (05:08 +0100)
Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Noel Power <noel.power@suse.com>
python/samba/tests/samba_tool/dnscmd.py

index 3d3d768c1d946ada3eccf6eb4cf98aa365d032d5..5e882972f464f53e9e02049f4f97bdbf5304f567 100644 (file)
@@ -815,7 +815,7 @@ class DnsCmdTestCase(SambaToolCmdTest):
 
         # assert that the record isn't spuriously tombstoned
         self.assertTrue('dNSTombstoned' not in records[0] or
-                        str(record['dNSTombstoned']) == 'FALSE')
+                        str(records[0]['dNSTombstoned']) == 'FALSE')
 
     def test_dns_wildcards(self):
         """