Skip to content

Commit 56070c6

Browse files
wilderrodriguesspark404
authored andcommitted
Fix for 1125389 RV: Bad use of return value - make sure the replace call is done after replaceAll and the correct value is returned
Signed-off-by: Hugo Trippaers <htrippaers@schubergphilis.com>
1 parent f03dcda commit 56070c6

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

‎plugins/network-elements/juniper-contrail/src/org/apache/cloudstack/network/contrail/management/ContrailManagerImpl.java‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -239,8 +239,7 @@ public NetworkOffering getOffering() {
239239
@Override
240240
public String getPhysicalNetworkName(PhysicalNetworkVO phys_net) {
241241
String physname = phys_net.getName();
242-
physname = physname.replaceAll("\\s", "");
243-
physname.replace("_", "");
242+
physname = physname.replaceAll("\\s", "").replace("_", "");
244243
return physname;
245244
}
246245

0 commit comments

Comments
 (0)