Skip to content

Commit 198747c

Browse files
progress report update.
1 parent 9c141ae commit 198747c

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

src/ResourceManager/Compute/Commands.Compute/Strategies/ProgressReport.cs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,22 +44,23 @@ public void Done<TModel>(ResourceConfig<TModel> config, double progress) where T
4444

4545
public void Update()
4646
{
47-
var x = string.Join(", ", _Set.Keys.Select(c => c.Name + " " + c.Strategy.Type));
47+
var x = string.Join(", ", _Set.Keys.Select(c => "'" + c.Name + "' " + c.Strategy.Type));
4848
var p = (int)(_Completed * 100.0);
4949
_Cmdlet.WriteProgress(
5050
new ProgressRecord(
5151
0,
52-
"Creating Azure resources, " + p + "%",
53-
x == string.Empty ? " " : x)
52+
"Creating Azure resources",
53+
p + "%")
5454
{
55-
PercentComplete = p
55+
PercentComplete = p,
56+
CurrentOperation = x == string.Empty ? null : "Creating " + x + "."
5657
});
5758
}
5859

5960
public void Start<TModel>(ResourceConfig<TModel> config) where TModel : class
6061
{
6162
_Set.TryAdd(config, new Void());
62-
_Cmdlet.WriteVerbose("Creating " + config.Name + " " + config.Strategy.Type + "...");
63+
_Cmdlet.WriteVerbose("Creating '" + config.Name + "' " + config.Strategy.Type + "...");
6364
Update();
6465
}
6566
}

0 commit comments

Comments
 (0)