File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change 6
6
using System . Data . SqlClient ;
7
7
using System . Security ;
8
8
using System . Security . Principal ;
9
-
10
9
using Altiris . NS ;
11
10
using Altiris . Resource ;
12
11
using Altiris . NS . ItemManagement ;
@@ -164,7 +163,12 @@ private int RunAutomation(GuidCollection bulletins) {
164
163
Console . WriteLine ( "\t Software update policy created!" ) ;
165
164
} else if ( config . Retarget ) {
166
165
if ( policies_arr . Length > 0 ) {
167
- foreach ( string p in policies_arr ) {
166
+ /* ENHANCEMENT: 2018-01-24; There is no need to update each policy - one of them will update the "parent" policy which is enough :D.
167
+ * This avoid doing the same task 153 times when an Office policy as 153 updates!
168
+ *
169
+ * */
170
+ // foreach (string p in policies_arr) {
171
+ string p = policies_arr [ 0 ] ;
168
172
if ( p . Length != 36 )
169
173
continue ;
170
174
@@ -193,7 +197,7 @@ private int RunAutomation(GuidCollection bulletins) {
193
197
Console . WriteLine ( "\t Saving the policy failed 10 times. Moving on to the next item." ) ;
194
198
}
195
199
}
196
- }
200
+ // } // Commented out for each node removed to fix
197
201
}
198
202
} else {
199
203
Console . WriteLine ( "\t A policy already exists for this bulletin." ) ;
You can’t perform that action at this time.
0 commit comments