Skip to content

Commit

Permalink
fix pep8 issues
Browse files Browse the repository at this point in the history
  • Loading branch information
aravindmani-1 committed Jul 26, 2024
1 parent 05324f6 commit f7c6792
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/module_utils/network/sonic/config/sflow/sflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ def validate_normalize_config(self, config):
if not (int(config["polling_interval"]) == 0 or int(config["polling_interval"]) in range(5, 301)):
self._module.fail_json(msg="polling interval out of range. must be 0 or in the range 5-300 inclusive", code=1)
if config is not None and config.get("max_header_size") is not None:
if not (int(config["max_header_size"])%128 == 0 or int(config["max_header_size"]) in range(128, 1024)):
if not (int(config["max_header_size"] % 128) == 0 or int(config["max_header_size"]) in range(128, 1024)):
self._module.fail_json(msg="Invalid max header size. must be multiple of 128 the range 128-1024 inclusive", code=1)
if config is not None and config.get("agent") is not None:
config["agent"] = get_normalize_interface_name(config.get("agent", ""), self._module)
Expand Down

0 comments on commit f7c6792

Please sign in to comment.