Repository :
http://git.fedorahosted.org/cgit/
On branch : master
---------------------------------------------------------------
commit e645277f40786b3eaad765d320cc45d0a9d9252b
Author: Matt Domsch <Matt_Domsch(a)dell.com>
Date: Fri Dec 5 12:39:41 2014 -0600
update-EC2-netblocks: set name=None creating new HostNetblocks
For some reason, we have to provide the name. I guess there's no
default value being set.
---------------------------------------------------------------
server/update-EC2-netblocks | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/server/update-EC2-netblocks b/server/update-EC2-netblocks
index e57b0a8..c23b7a1 100755
--- a/server/update-EC2-netblocks
+++ b/server/update-EC2-netblocks
@@ -66,7 +66,7 @@ def doit():
if not host_has_netblock(hosts_by_region, region, ip_prefix):
print "Added host %s netblock %s" % (host.name, ip_prefix)
if not options.dry_run:
- nb = HostNetblock(host=host, netblock=ip_prefix) # this adds the
entry to the database, mark as not stale
+ nb = HostNetblock(host=host, netblock=ip_prefix, name=None) # this
adds the entry to the database, mark as not stale
hosts_by_region[region]['netblocks'][ip_prefix] =
{'host_netblock_id' : nb.id,
'stale':False,
}