Skip to content

Commit

Permalink
🐛 [-bug] Fixed issue with empty StreamDecorators and capabilities
Browse files Browse the repository at this point in the history
Default Capabilities are created for empty StreamDecorators (e.g. `StreamDecorator(None)`). However, the default Capabilities constructor looks at environment variables to override values when none are provided. In this case, we don't want to look at those values and use the lowest settings available.

The fix is to ignore the environment when creating the Capabilities to associate with the empty StreamDecorator.
  • Loading branch information
davidbrownell committed Apr 18, 2024
1 parent c7d372e commit c6b8a3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dbrownell_Common/Streams/StreamDecorator.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ def PrefixOrSuffixTToCallable(
capabilities = lowest_capabilities

else:
capabilities = Capabilities()
capabilities = Capabilities(ignore_environment=True)

Capabilities.Set(self, capabilities)

Expand Down

0 comments on commit c6b8a3d

Please sign in to comment.