From 508327ac75197eee8ca556a930735d684de90431 Mon Sep 17 00:00:00 2001 From: Naor Matania Date: Mon, 23 Mar 2020 00:53:45 -0700 Subject: [PATCH] Update add_equipment_port_type doc Summary: doc fix Created from Diffusion's 'Open in Editor' feature. Reviewed By: vdorfman Differential Revision: D20589021 fbshipit-source-id: b86850c1ddf4c3e2a3761d8eb5173e30b49a41ab --- symphony/cli/pyinventory/api/port_type.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/symphony/cli/pyinventory/api/port_type.py b/symphony/cli/pyinventory/api/port_type.py index d66e03083e79..c0d0229bfa7c 100644 --- a/symphony/cli/pyinventory/api/port_type.py +++ b/symphony/cli/pyinventory/api/port_type.py @@ -52,10 +52,11 @@ def add_equipment_port_type( Example: ``` from pyinventory.consts import PropertyDefinition + from pyinventory.graphql.property_kind_enum import PropertyKind port_type1 = client.add_equipment_port_type( "port type 1", - [PropertyDefinition("port property", "string", None, True)], - [PropertyDefinition("link port property", "string", None, True)], + [PropertyDefinition("port property", PropertyKind.string, None, True)], + [PropertyDefinition("link port property", PropertyKind.string, None, True)], ) ``` """