Skip to content

Commit

Permalink
Merge pull request avocado-framework#3165 from smitterl/fix_keywrap
Browse files Browse the repository at this point in the history
libvirt_keywrap: handle hexdump when token unavailable
  • Loading branch information
chunfuwen authored Aug 16, 2021
2 parents ce0ee32 + 80bda1b commit 7b54fc4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion virttest/utils_libvirt/libvirt_keywrap.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def get_some_aes_key_token(self):
attr_path = os.path.join(self.sysfs, some_key_attribute)
error, output = cmd_status_output(cmd="hexdump %s" % attr_path,
session=self.session)
if error:
if error or "No such device" in output:
logging.debug("Error reading from %s: %s", attr_path, output)
return None
return output
Expand Down

0 comments on commit 7b54fc4

Please sign in to comment.