@@ -394,16 +394,11 @@ def insync?(context, _name, property_name, is_hash, should_hash)
394394 is = PuppetX ::Firewall ::Utility . log_level_name_to_number ( is_hash [ property_name ] )
395395 should = PuppetX ::Firewall ::Utility . log_level_name_to_number ( should_hash [ property_name ] )
396396 is == should
397- when :set_mark
397+ when :set_mark , :match_mark , :connmark
398398 # Ensure that the values are compared to eachother in hexidecimal format
399399 is = PuppetX ::Firewall ::Utility . mark_mask_to_hex ( is_hash [ property_name ] )
400400 should = PuppetX ::Firewall ::Utility . mark_mask_to_hex ( should_hash [ property_name ] )
401401 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
407402 when :time_start , :time_stop
408403 # Ensure the values are compared in full `00:00:00` format
409404 is = is_hash [ property_name ]
@@ -893,8 +888,8 @@ def self.process_input(should)
893888
894889 # `set_mark`, `match_mark` and `connmark` must be applied in hexidecimal format
895890 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 ]
898893
899894 # `time_start` and `time_stop` must be applied in full HH:MM:SS format
900895 time = [ :time_start , :time_stop ]
0 commit comments