Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion aws-sam-cli-master/samcli/lib/iac/plugins_interfaces.py
Original file line number Diff line number Diff line change
Expand Up @@ -703,7 +703,7 @@ def stacks(self, stacks: List[Stack]) -> None:

@property
def default_stack(self) -> Optional[Stack]:
if len(self._stacks) > 0:
if self._stacks:
return self._stacks[0]
return None

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,4 +64,4 @@ def default():
port = '5000'
else:
host, port = address.split(":")
app.run(host=host, port=int(port), debug=True)
app.run(host=host, port=int(port), debug=False)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Recommendation generated by Amazon CodeGuru Reviewer. Leave feedback on this recommendation by replying to the comment or by reacting to the comment using emoji.

Don't hardcode the DEBUG variable because some system extensions might be configured to use a diffrent value. Instead, use OS environment variables to set up the debug feature.