-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
24.0.11 prints 'default@eu-central-1' in 'aws' type segment #5848
Comments
I'l have a look, templates was refactored and highly likely something is missing now. I can see it still loads the default template as well which is why this is the case. |
hmmm. I'm on 24.1.0 now, but it's still behaving the same.
am I doing something wrong, or is it still buggy? |
@stheine I'mm double check. Didn't do an integration check. Care to share the logs as well? |
here the log with the lastest version:
|
@stheine ok, so it does what it needs to do. In the current behaviour, it does a fallback to the default template. I assume that's not what you expected? If you add {
"style": "plain",
"foreground": "black",
"type": "aws",
"background_templates": [
"{{if contains \"232953457963\" .Profile}}#00ff00{{end}}",
"{{if contains \"930417160920\" .Profile}}#00ffff{{end}}",
"{{if contains \"141575347758\" .Profile}}#ffff00{{end}}"
],
"templates": [
"{{if contains \"232953457963\" .Profile}}AWS prod<inherit,transparent> </>{{end}}",
"{{if contains \"930417160920\" .Profile}}AWS stage<inherit,transparent> </>{{end}}",
"{{if contains \"141575347758\" .Profile}}AWS dev<inherit,transparent> </>{{end}}"
],
"properties": {
"display_default": false
}
} |
ok, that's a change in behavior to the version prior to I'm absolutely fine with that solution! |
This issue has been automatically locked since there has not been any recent activity (i.e. last half year) after it was closed. It helps our maintainers focus on the active issues. |
Code of Conduct
What happened?
I use this segment code for displaying what AWS system I am talking to:
After today's update to
24.0.11
, this is printingdefault@eu-central-1
even if none of my template conditions is matching. this hasn't been the case in earlier versions.Theme
my own one - relevant section above
What OS are you seeing the problem on?
Linux
Which shell are you using?
bash
Log output
The text was updated successfully, but these errors were encountered: