Skip to content

Commit

Permalink
Merge pull request #1723 from eulores/patch-1
Browse files Browse the repository at this point in the history
Corrected bug in file extension check
  • Loading branch information
acockburn committed Mar 25, 2023
2 parents ece502d + a5c4903 commit 134fc04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion appdaemon/app_management.py
Original file line number Diff line number Diff line change
Expand Up @@ -1249,7 +1249,7 @@ def create_app(self, app=None, **kwargs): # @next-release create_app()
self.logger.info("Creating app using filename %s", app_file)

else:
if app_file[4:] != ".yaml":
if app_file[-5:] != ".yaml":
app_file = f"{app_file}.yaml"

app_file = os.path.join(app_directory, app_file)
Expand Down

0 comments on commit 134fc04

Please sign in to comment.