Validating type parameter and including all types#4412
Validating type parameter and including all types#4412DaanHoogland merged 1 commit intoapache:4.14from
Conversation
|
@blueorangutan package |
|
@davidjumani a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
DaanHoogland
left a comment
There was a problem hiding this comment.
not sure why we need the "all" but code looks good
| if (!Strings.isNullOrEmpty(guestIpType)) { | ||
| if (guestIpType.equalsIgnoreCase("all")) { | ||
| return null; | ||
| } | ||
| return Network.GuestType.fromValue(guestIpType).toString(); | ||
| } | ||
| return null; |
There was a problem hiding this comment.
so in the end empty and "all" are treated the same?
|
Packaging result: ✔centos7 ✖centos8 ✔debian. JID-2205 |
|
@blueorangutan test |
|
@davidjumani a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
GabrielBrascher
left a comment
There was a problem hiding this comment.
Code LGTM.
I have not much clue on why we need "all" @DaanHoogland. What about simply remove "all" and document it? (maybe on another PR, this would require some discussion)
|
I think that all should be there as a filter. Will be useful in Primate to simplify the existing code once merged |
|
I'm fine with leaving it there |
|
Trillian test result (tid-3024)
|
Description
Validating the
typeparameter for the listNetworks API.Also allowing all type to be passed
Types of changes
How Has This Been Tested?