realm.rm_port: Don't spout an error if the port exists, just return False.

Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
This commit is contained in:
Matthew Stidham
2022-01-24 09:44:06 -08:00
committed by shivam
parent 8fb5a4c5f8
commit 693adadf30

View File

@@ -231,7 +231,7 @@ class Realm(LFCliBase):
req_url = "/cli-json/rm_vlan"
eid = self.name_to_eid(port_eid)
if check_exists:
if not self.port_exists(port_eid, debug=debug_):
if not self.port_exists(port_eid, debug=False):
return False
data = {