Skip to content

Commit

Permalink
Fix sanitization character
Browse files Browse the repository at this point in the history
  • Loading branch information
akrantz01 committed May 17, 2022
1 parent 006acd6 commit 32e7cab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/deployer/docker/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ impl Deployer for Docker {
.take(8)
.map(char::from)
.collect::<String>();
let router_name = format!("{}-{}", options.name.replace('/', "."), suffix);
let router_name = format!("{}-{}", options.name.replace('/', "_"), suffix);

// Add routing label
let rule = match &routing.path {
Expand Down
2 changes: 1 addition & 1 deletion src/service/name.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ impl ServiceName {
pub(super) fn new<S: Into<String>>(name: S) -> ServiceName {
let proper = name.into();
let domain = proper.split('/').rev().join(".");
let sanitized = proper.replace('/', ".");
let sanitized = proper.replace('/', "_");

ServiceName {
proper,
Expand Down

0 comments on commit 32e7cab

Please sign in to comment.