opkg.py: make owner function return value, instead of iterator

Signed-off-by: Alejandro del Castillo <alejandro.delcastillo@ni.com>
This commit is contained in:
Alejandro del Castillo 2018-01-12 09:14:10 -06:00 committed by rallytime
parent 7934372b7b
commit 369720677b
No known key found for this signature in database
GPG Key ID: E8F1A4B90D0DEA19

View File

@ -1284,5 +1284,5 @@ def owner(*paths, **kwargs): # pylint: disable=unused-argument
else:
ret[path] = ''
if len(ret) == 1:
return six.itervalues(ret)
return next(six.itervalues(ret))
return ret