| Index: grit/format/policy_templates/writers/reg_writer.py
|
| ===================================================================
|
| --- grit/format/policy_templates/writers/reg_writer.py (revision 175)
|
| +++ grit/format/policy_templates/writers/reg_writer.py (working copy)
|
| @@ -83,9 +83,10 @@
|
| list.append('"%s"=%s' % (policy['name'], example_value_str))
|
|
|
| def WritePolicy(self, policy):
|
| - self._WritePolicy(policy,
|
| - self.config['win_reg_mandatory_key_name'],
|
| - self._mandatory)
|
| + if self.CanBeMandatory(policy):
|
| + self._WritePolicy(policy,
|
| + self.config['win_reg_mandatory_key_name'],
|
| + self._mandatory)
|
|
|
| def WriteRecommendedPolicy(self, policy):
|
| self._WritePolicy(policy,
|
|
|