Skip to content

Commit

Permalink
outposts: fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
BeryJu committed Sep 19, 2020
1 parent f6b52b9 commit c90906c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion passbook/outposts/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,11 @@ def deployment_version(self) -> Dict[str, Any]:
return {"version": "", "outdated": False, "should": OUR_VERSION}
try:
outpost_version = parse(value)
return {"version": value, "outdated": outpost_version < OUR_VERSION, "should": OUR_VERSION}
return {
"version": value,
"outdated": outpost_version < OUR_VERSION,
"should": OUR_VERSION,
}
except InvalidVersion:
return {"version": version, "outdated": False, "should": OUR_VERSION}

Expand Down

0 comments on commit c90906c

Please sign in to comment.