Skip to content

Commit 712ab5b

Browse files
committed
add patches
1 parent ca4fa9f commit 712ab5b

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed

rootfs/patches/__init__.py.patch

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
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

rootfs/patches/nmap.py.patch

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
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+
))

0 commit comments

Comments
 (0)