commit | 38e7ae55a99391ade1c01c7c296caa7360a50860 | [log] [tgz] |
---|---|---|
author | Tony Mack <tmack@tux.cs.princeton.edu> | Wed Sep 24 10:08:51 2014 -0400 |
committer | Tony Mack <tmack@tux.cs.princeton.edu> | Wed Sep 24 10:08:51 2014 -0400 |
tree | 0c80ba47c52b822f190b1f7231774861b974e611 | |
parent | 2faa969719be17dee75554110ac19a41c1cb04b3 [diff] [blame] |
set sliver name in save()
diff --git a/planetstack/core/models/sliver.py b/planetstack/core/models/sliver.py index ec7f266..c694a1e 100644 --- a/planetstack/core/models/sliver.py +++ b/planetstack/core/models/sliver.py
@@ -59,8 +59,7 @@ return u'unsaved-sliver' def save(self, *args, **kwds): - if not self.name: - self.name = self.slice.name + self.name = self.slice.slicename if not self.creator and hasattr(self, 'caller'): self.creator = self.caller self.deploymentNetwork = self.node.deployment