X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=README.md;h=be8b0d278b074e09dbc09fcef7d6534ef0b1d87a;hb=1931b2032c07d1ed3897739d0b40485d4411db1d;hp=1791594c20feb1bc55d8b986a478d05035630bb2;hpb=404b4ea6e3fa2adf4349883488dadca4862dcaf7;p=osm%2Fosmclient.git diff --git a/README.md b/README.md index 1791594..be8b0d2 100644 --- a/README.md +++ b/README.md @@ -126,7 +126,7 @@ from osmclient.common.exceptions import ClientException hostname = "127.0.0.1" myclient = client.Client(host=hostname, sol005=True) resp = myclient.nsd.list() -print yaml.safe_dump(resp) +print yaml.safe_dump(resp, indent=4, default_flow_style=False) ``` ### Simple Python code to get the list of VNF packages from a specific user and project @@ -151,7 +151,7 @@ if project is not None: kwargs['project']=project myclient = client.Client(host=hostname, sol005=True, **kwargs) resp = myclient.vnfd.list() -print yaml.safe_dump(resp) +print yaml.safe_dump(resp, indent=4, default_flow_style=False) ``` ## Enable autocompletion