-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixes multiple PRs raised by Test team #107
Conversation
Fixes #112 |
Fixes #109 |
Fixes #115 |
salt/modules/junos.py
Outdated
|
||
if check and not test: | ||
if db_mode == 'dynamic' or check and not test: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you just use default value for check and then we wont need this line change
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
commit_check
returns True
if commit_check succeeds, else raises an exception.
ret['message'] = 'Invalid image path.' | ||
ret['out'] = False | ||
return ret | ||
if not os.path.isfile(image_cached_path): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
check if this is Tab?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Verified no Tab.
salt/modules/junos.py
Outdated
@@ -1510,7 +1555,7 @@ def get_table(table, table_file, path=None, target=None, key=None, key_items=Non | |||
except Exception as err: | |||
ret['message'] = 'Uncaught exception - please report: {0}'.format( | |||
str(err)) | |||
traceback.print_exc() | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
revert the removed line back
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reverted it back
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please do the requested changes.
@vnitinv Also updated the comment as requested. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good
What does this PR do?
Fixes #104