projects
/
osm
/
N2VC.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 2:
9f92750
)
Merge pull request #28 from petevg/bug/fixes-for-null-cases
author
Tim Van Steenburgh
<tvansteenburgh@gmail.com>
Wed, 30 Nov 2016 14:09:07 +0000
(09:09 -0500)
committer
GitHub
<noreply@github.com>
Wed, 30 Nov 2016 14:09:07 +0000
(09:09 -0500)
Bug/fixes for null cases
juju/model.py
patch
|
blob
|
history
diff --git
a/juju/model.py
b/juju/model.py
index
50b3ad0
..
df72eb2
100644
(file)
--- a/
juju/model.py
+++ b/
juju/model.py
@@
-1261,7
+1261,7
@@
class Model(object):
raise Exception(error.message)
for metric in entity_metrics.metrics:
- metrics[metric.unit].append(
metric.to_json(
))
+ metrics[metric.unit].append(
vars(metric
))
return metrics