Skip to content

Commit

Permalink
fix naming whitespace issue
Browse files Browse the repository at this point in the history
  • Loading branch information
elasticroentgen committed May 8, 2024
1 parent 91de0d4 commit 54cf27e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions CloudController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,9 @@ public async Task<string> CreateNewRunner(string arch, string size, string runne
//string imageName = $"gh-actions-img-{arch}-{imageVersion}";
string imageName = profile.IsCustomImage ? $"ghri-{profile.OsImageName}-{arch}" : profile.OsImageName;


string name = $"ghr-{NameGenerator.Identifiers.Get(separator: "-")}".ToLower();

// The naming generator might produce names with whitespace.
string name = $"ghr-{NameGenerator.Identifiers.Get(separator: "-")}".ToLower().Replace(' ','-');

_logger.LogInformation($"Creating VM {name} from image {imageName} of size {size} for {targetName}");

Expand Down

0 comments on commit 54cf27e

Please sign in to comment.