Index: grit/format/policy_templates/writers/adm_writer.py |
=================================================================== |
--- grit/format/policy_templates/writers/adm_writer.py (revision 175) |
+++ grit/format/policy_templates/writers/adm_writer.py (working copy) |
@@ -153,9 +153,10 @@ |
builder.AddLine() |
def WritePolicy(self, policy): |
- self._WritePolicy(policy, |
- self.config['win_reg_mandatory_key_name'], |
- self.policies) |
+ if self.CanBeMandatory(policy): |
+ self._WritePolicy(policy, |
+ self.config['win_reg_mandatory_key_name'], |
+ self.policies) |
def WriteRecommendedPolicy(self, policy): |
self._WritePolicy(policy, |