File tree Expand file tree Collapse file tree 2 files changed +29
-0
lines changed Expand file tree Collapse file tree 2 files changed +29
-0
lines changed Original file line number Diff line number Diff line change
1
+ --- __init__.py.old 2020-11-25 18:19:06.000000000 +0100
2
+ +++ __init__.py 2022-12-25 23:45:59.198282982 +0100
3
+ @@ -65,8 +65,8 @@
4
+ self.netbox.ipam.ip_addresses.create(
5
+ address=host[0],
6
+ tags=[{"name": self.tag}],
7
+ - # dns_name=host[1],
8
+ - description=host[1]
9
+ + dns_name=host[1],
10
+ + description=host[2]
11
+ )
12
+ logging.info(f'created: {host[0]}/32 "{host[1]}"')
13
+ self.stats['created'] += 1
Original file line number Diff line number Diff line change
1
+ --- nmap.py.old 2020-11-25 18:19:06.000000000 +0100
2
+ +++ nmap.py 2022-12-25 23:44:45.336169470 +0100
3
+ @@ -21,10 +21,12 @@
4
+ try:
5
+ self.hosts.append((
6
+ host.find('address').attrib['addr'],
7
+ - host.find('hostnames').find('hostname').attrib['name']
8
+ + host.find('hostnames').find('hostname').attrib['name'],
9
+ + self.unknown
10
+ ))
11
+ except AttributeError:
12
+ self.hosts.append((
13
+ host.find('address').attrib['addr'],
14
+ + "",
15
+ self.unknown
16
+ ))
You can’t perform that action at this time.
0 commit comments