Protirus / patchautomation

Patch Automation tool kit for Symantec Management Platform 7.1, 7.5, 7.6, 8.0, 8.1, 8.5
0 stars 1 forks source link

TargetGuid Issue in CreateUpdatePolicy #5

Closed AlexHedley closed 4 years ago

AlexHedley commented 5 years ago

https://www.symantec.com/connect/downloads/cwoc-patchautomation-and-zerodaypatch-builds-81#comment-12053771

@LCode

I encountered the same issue and I could fix it with making a slight change in Zerodaypatch.cs

The line which is causing the problem

wrap.CreateUpdatePolicy(name, bulletin.ToString(), config.Target_Guids, true);

My correction

wrap.CreateUpdatePolicy(name, bulletin.ToString(), config.Target_Guids[0], true);

https://github.com/Protirus/patchautomation/blob/master/ZeroDayPatch.cs#L138

AlexHedley commented 5 years ago

Compare config.Target_Guids

public string CreateUpdatePolicy(string name, string bulletinGuids, string targetGuid, bool enabled) https://github.com/Protirus/patchautomation/blob/master/APIWrapper.cs#L170

public string CreateUpdatePolicy(string name, string bulletinGuids, List<string> targetGuids, bool enabled) https://github.com/Protirus/patchautomation/blob/master/APIWrapper.cs#L213

AlexHedley commented 4 years ago

See #6