image-info: fix undefined variable in analyse_directory()
One branch of the analyse_directory() function's if statement used undefined variable `repo`. Copy its existing definition already used in the function. Signed-off-by: Tomas Hozza <thozza@redhat.com>
This commit is contained in:
parent
7b37c92bea
commit
4854b5730c
1 changed files with 1 additions and 0 deletions
|
|
@ -2242,6 +2242,7 @@ def analyse_directory(path):
|
|||
append_ostree_repo(report, repo)
|
||||
elif os.path.isdir(os.path.join(path, "refs")):
|
||||
report["type"] = "ostree/repo"
|
||||
repo = os.path.join(path, "repo")
|
||||
append_ostree_repo(report, repo)
|
||||
else:
|
||||
append_directory(report, path)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue