commit | 261f858abbb0b82b03aad2db10be0f2954753fe2 | [log] [tgz] |
---|---|---|
author | Tony Mack <tmack@paris.CS.Princeton.EDU> | Mon Apr 21 17:08:31 2014 -0400 |
committer | Tony Mack <tmack@paris.CS.Princeton.EDU> | Mon Apr 21 17:08:39 2014 -0400 |
tree | 18955cbb397d29a7d20518c46c3808fc608a1ec2 | |
parent | b61c81c8364f7fc4ae132240dab6947f7370bd3a [diff] |
dont save sliver model here
diff --git a/planetstack/observer/steps/sync_sliver_ips.py b/planetstack/observer/steps/sync_sliver_ips.py index 83e33eb..e2212d1 100644 --- a/planetstack/observer/steps/sync_sliver_ips.py +++ b/planetstack/observer/steps/sync_sliver_ips.py
@@ -24,5 +24,6 @@ if not ips: return sliver.ip = ips[0]['addr'] - sliver.save() - logger.info("saved sliver ip: %s %s" % (sliver, ips[0])) + if sliver.ip: + sliver.save() + logger.info("saved sliver ip: %s %s" % (sliver, ips[0]))