diff --git a/avocado/utils/asset.py b/avocado/utils/asset.py index 35267c408c2c85ed58df79ace4af26cb3753afc3..fd692fd59624bc67c5b84a852b91823a9045bd23 100644 --- a/avocado/utils/asset.py +++ b/avocado/utils/asset.py @@ -192,8 +192,8 @@ class Asset(object): if not os.path.isfile(self.hashfile): self._compute_hash() - with open(self.hashfile, 'r') as asset_file: - for line in asset_file: + with open(self.hashfile, 'r') as hash_file: + for line in hash_file: # md5 is 32 chars big and sha512 is 128 chars big. # others supported algorithms are between those. pattern = '%s [a-f0-9]{32,128}' % self.algorithm