Skip to content

Commit

Permalink
style(#3336): Fix linter issues
Browse files Browse the repository at this point in the history
  • Loading branch information
nico-stefani committed Dec 21, 2022
1 parent ffcaa41 commit d22e515
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions deps/wazuh_testing/wazuh_testing/tools/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,12 +171,13 @@ def get_host_name():
def validate_interval_format(interval):
"""Validate that the interval passed has the format in which the last digit is a letter from those passed and
the other characters are between 0-9"""
if interval=='':
if interval == '':
return False
if interval[-1] not in ['s','m', 'h','d','w','y'] or not isinstance(int(interval[0:-1]), numbers.Number):
if interval[-1] not in ['s', 'm', 'h', 'd', 'w', 'y'] or not isinstance(int(interval[0:-1]), numbers.Number):
return False
return True


def format_ipv6_long(ipv6_address):
"""Return the long form of the address representation in uppercase.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@
configuration_parameters:
metadata:
bucket_type: vpcflow
bucket_name: wazuh-vpcflow-integration-tests
bucket_name: wazuh-vpcflow-integration-tests

0 comments on commit d22e515

Please sign in to comment.