update_uniqueness plugin: fix referenced before assigment error

This error may potentially happen when plugin migration is skipped due
an error. In that case variable 'update' was undefined.

Reviewed-By: Martin Babinsky <mbabinsk@redhat.com>
This commit is contained in:
Martin Basti 2016-01-06 20:26:09 +01:00
parent ae2462738b
commit 8f09499ee0

View File

@ -214,7 +214,7 @@ class update_uniqueness_plugins_to_new_syntax(Updater):
root_logger.error("Unable to migrate configuration of "
"plugin %s (%s)",
entry.dn, e)
else:
update_list.append(update)
return False, update_list