Skip to content

Commit

Permalink
image-info: fix inspect.getfullargspec() check
Browse files Browse the repository at this point in the history
  • Loading branch information
mvo5 authored and dustymabe committed Dec 22, 2023
1 parent 7fd306c commit 3bb2cb6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/image-info
Original file line number Diff line number Diff line change
Expand Up @@ -2688,7 +2688,7 @@ def append_partitions(report, image):
}
# XXX: remove inspect and just add once osbuild PR#1501 is merged
import inspect
if "partition" in inspect.getfullargspec(mounts.Mount):
if "partition" in inspect.getfullargspec(mounts.Mount).args:
# Just a filesystem, no partitions on this device
mnt_kwargs["partition"] = None
mmgr.mount(mounts.Mount(**mnt_kwargs))
Expand Down

0 comments on commit 3bb2cb6

Please sign in to comment.