Skip to content

Commit

Permalink
change log print
Browse files Browse the repository at this point in the history
  • Loading branch information
gal-berger committed Apr 5, 2020
1 parent 53a386e commit e47b362
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions demisto_sdk/commands/validate/file_validator.py
Original file line number Diff line number Diff line change
Expand Up @@ -630,17 +630,15 @@ def validate_against_previous_version(self, no_error=False):
Args:
no_error (bool): If set to true will restore self._is_valid after run (will not return new errors)
"""
compared_branch_name = self.prev_ver
if not self.prev_ver:
content_release_branch_id = self.get_content_release_identifier()
if not content_release_branch_id:
print_warning('could\'t get content\'s release branch ID. Skipping validation.')
return
else:
self.prev_ver = content_release_branch_id
compared_branch_name = 'release branch'

print_color('Starting validation against {}'.format(compared_branch_name), LOG_COLORS.GREEN)
print_color('Starting validation against {}'.format(self.prev_ver), LOG_COLORS.GREEN)
modified_files, _, _, _ = self.get_modified_and_added_files(self.prev_ver)
prev_self_valid = self._is_valid
self.validate_modified_files(modified_files)
Expand Down

0 comments on commit e47b362

Please sign in to comment.