Fix Null Reference exception in Windows agent PS scripts
This patch will be going to solve if a output of the powershell script returns null. Also change the version of the agent. Change-Id: I1927deab198283dcbebe00a03db693c41893295d Closes-bug: #1627851
This commit is contained in:
parent
3cfdbe8fc9
commit
945e643d5c
|
@ -97,7 +97,7 @@ namespace Mirantis.Murano.WindowsAgent
|
||||||
{
|
{
|
||||||
currentResults.Add(new ExecutionResult {
|
currentResults.Add(new ExecutionResult {
|
||||||
IsException = false,
|
IsException = false,
|
||||||
Result = result.Select(SerializePsObject).Where(obj => obj != null).ToList()
|
Result = result.Where(obj => obj != null).Select(SerializePsObject).ToList()
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -30,7 +30,7 @@ namespace Mirantis.Murano.WindowsAgent
|
||||||
{
|
{
|
||||||
base.OnStart(args);
|
base.OnStart(args);
|
||||||
|
|
||||||
Log.Info("Version 0.5.3");
|
Log.Info("Version 0.5.4");
|
||||||
|
|
||||||
this.rabbitMqClient = new RabbitMqClient();
|
this.rabbitMqClient = new RabbitMqClient();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue