@@ -394,16 +394,11 @@ def insync?(context, _name, property_name, is_hash, should_hash)
394
394
is = PuppetX ::Firewall ::Utility . log_level_name_to_number ( is_hash [ property_name ] )
395
395
should = PuppetX ::Firewall ::Utility . log_level_name_to_number ( should_hash [ property_name ] )
396
396
is == should
397
- when :set_mark
397
+ when :set_mark , :match_mark , :connmark
398
398
# Ensure that the values are compared to eachother in hexidecimal format
399
399
is = PuppetX ::Firewall ::Utility . mark_mask_to_hex ( is_hash [ property_name ] )
400
400
should = PuppetX ::Firewall ::Utility . mark_mask_to_hex ( should_hash [ property_name ] )
401
401
is == should
402
- when :match_mark , :connmark
403
- # Ensure that the values are compared to eachother in hexidecimal format
404
- is = PuppetX ::Firewall ::Utility . mark_to_hex ( is_hash [ property_name ] )
405
- should = PuppetX ::Firewall ::Utility . mark_to_hex ( should_hash [ property_name ] )
406
- is == should
407
402
when :time_start , :time_stop
408
403
# Ensure the values are compared in full `00:00:00` format
409
404
is = is_hash [ property_name ]
@@ -893,8 +888,8 @@ def self.process_input(should)
893
888
894
889
# `set_mark`, `match_mark` and `connmark` must be applied in hexidecimal format
895
890
should [ :set_mark ] = PuppetX ::Firewall ::Utility . mark_mask_to_hex ( should [ :set_mark ] ) if should [ :set_mark ]
896
- should [ :match_mark ] = PuppetX ::Firewall ::Utility . mark_to_hex ( should [ :match_mark ] ) if should [ :match_mark ]
897
- should [ :connmark ] = PuppetX ::Firewall ::Utility . mark_to_hex ( should [ :connmark ] ) if should [ :connmark ]
891
+ should [ :match_mark ] = PuppetX ::Firewall ::Utility . mark_mask_to_hex ( should [ :match_mark ] ) if should [ :match_mark ]
892
+ should [ :connmark ] = PuppetX ::Firewall ::Utility . mark_mask_to_hex ( should [ :connmark ] ) if should [ :connmark ]
898
893
899
894
# `time_start` and `time_stop` must be applied in full HH:MM:SS format
900
895
time = [ :time_start , :time_stop ]
0 commit comments