From 1edd40cb13b74546b94205d000fd2dc096639bdf Mon Sep 17 00:00:00 2001 From: Mathias Neerup Date: Wed, 17 Jul 2019 18:23:06 +0200 Subject: [PATCH] Fix wrong order of dnsmasq dhcp-host --- phpipam-hosts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/phpipam-hosts b/phpipam-hosts index e535c98..ea8881b 100755 --- a/phpipam-hosts +++ b/phpipam-hosts @@ -407,9 +407,9 @@ try: elif args.format == 'dnsmasq': if not mac: - entry = '{},{}\n'.format(host, ip_real) + entry = '{},{}\n'.format(ip_real, host) else: - entry = '{}{},{},{}\n'.format(comment, mac, host, ip_real) + entry = '{}{},{},{}\n'.format(comment, mac, ip_real, host) output = output + entry elif args.format == 'hosts':