ajusting dict to pass on if tests later on code, in this way arping i… - #2806
Conversation
|
@lhmachado can you rebase against 4.11 branch and change base branch of the PR to 4.11? |
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
644b45c to
709db55
Compare
|
@lhmachado I've fixed the rebase issue now. |
|
guess I stopped the ape |
|
@DaanHoogland a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
|
Packaging result: ✔centos6 ✔centos7 ✔debian. JID-2260 |
|
@blueorangutan test matrix |
|
@rhtyd a Trillian-Jenkins matrix job (centos6 mgmt + xs71, centos7 mgmt + vmware65, centos7 mgmt + kvmcentos7) has been kicked to run smoke tests |
| dp['gateway'] = self.qFile.data['cmd_line']['localgw'] | ||
| else: | ||
| dp['gateway'] = 'None' | ||
| dp['gateway'] = '' |
There was a problem hiding this comment.
Why not use None instead of a empty string? Because None is the best way in Python to tell it's empty and does not contain anything.
There was a problem hiding this comment.
yes, or 'None' (in a string) I thought I commented that but cannot find my remarks.
There was a problem hiding this comment.
@wido later on code, there is a string literal concatenation, so if we use None (Type), will raise an "TypeError: cannot concatenate 'str' and 'NoneType' objects".
In python the '' also represent emptyness in if steatements, for this reason in this particular case i`ve used '' instead None (type) .
There was a problem hiding this comment.
ok, good point. So either this (less code) or a check on the gateway later to prevent the faulty concat. I can live with this solution. @wido?
|
Trillian test result (tid-2945)
|
|
Trillian test result (tid-2947)
|
|
Trillian test result (tid-2960)
|
|
@blueorangutan package |
|
@rhtyd a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
|
@blueorangutan test |
|
@rhtyd a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
|
Trillian test result (tid-2966)
|
|
Tests LGTM, I'm okay with the fix for the release. For longer term, a thorough refactoring and checking of the VR/python code is needed. |
…s not called anyway.
Description
Types of changes
GitHub Issue/PRs
#2805
Screenshots (if appropriate):
How Has This Been Tested?
Manually
Checklist:
Testing