fixes #1452 set path separator to slash in interpolation and add a test case #1468
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Signed-off-by: Lifubang lifubang@acmcoder.com
- What I did
Please see issue #1452 , Variable type conversion in Compose file breaks if service name contains dot.
- How I did it
set path separator from dot to slash in interpolation and add a test case
- How to verify it
After this patch:
- Description for the changelog
set path separator from dot to slash in interpolation
- Addition info
But, but, the daemon said:
failed to create service stk2_app.test_1: Error response from daemon: rpc error: code = InvalidArgument desc = name must be valid as a DNS name component
The daemon's check regexp is
^[a-zA-Z0-9](?:[-_]*[A-Za-z0-9]+)*$
, don't contain dot.But I think this is another issue( see #1470 ).
At least, by this patch, we can get the right response.