Proposal :
[/usr/share/netplan/netplan/cli/commands/ip.py]
# Extract out of the generator our mapping in a dict.
logging.debug('command ip leases: running %s', argv)
- out = subprocess.check_output(argv, universal_newlines=True)
+ try:
+ out = subprocess.check_output(argv, universal_newlines=True)
+ except CalledProcessError as e:
+ sys.exit("Failed to execute. Please make sure the interface %s is managed
by netplan and configured to DHCP" % (self.interface))
mapping = {}
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1768823
Title:
netplan ip leases <interface>
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/netplan.io/+bug/1768823/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs