Skip to content

Commit 5b54a6c

Browse files
Merge pull request #78 from nextmv-io/merschformann/small-exist-ok-improvement
Improves order of checking whether app exists
2 parents 4b9a395 + a93221b commit 5b54a6c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nextmv/nextmv/cloud/application.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -459,7 +459,7 @@ def new(
459459
The new application.
460460
"""
461461

462-
if cls.exists(client=client, id=id) and exist_ok:
462+
if exist_ok and cls.exists(client=client, id=id):
463463
return Application(client=client, id=id)
464464

465465
payload = {

0 commit comments

Comments
 (0)