projects
/
osm
/
osmclient.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
osm.py: safe_dump with indent 4 and default_flow_style False
[osm/osmclient.git]
/
README.md
diff --git
a/README.md
b/README.md
index
1791594
..
be8b0d2
100644
(file)
--- 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()
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
```
### 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()
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
```
## Enable autocompletion