Page MenuHomeDevCentral

D1700.diff
No OneTemporary

D1700.diff

diff --git a/_modules/jails.py b/_modules/jails.py
--- a/_modules/jails.py
+++ b/_modules/jails.py
@@ -10,6 +10,9 @@
# -------------------------------------------------------------
+import errno
+
+
def _get_all_jails():
return __pillar__.get('jails', {})
@@ -70,7 +73,7 @@
interfaces = _get_hardware_network_interfaces()
if len(interfaces) < 1:
- raise "No network interface detected."
+ raise OSError(errno.ENODEV, "No network interface detected.")
# Nasqueron convention assigns the ICANNN network
# to the first card.
@@ -97,11 +100,7 @@
return interface
- raise "No network interface detected."
-
- # Nasqueron convention assigns the ICANNN network
- # to the first card.
- return interfaces[0]
+ raise OSError(errno.EAFNOSUPPORT, "No network interface detected.")
def get(jailname, group=None):

File Metadata

Mime Type
text/plain
Expires
Mon, Nov 25, 16:27 (21 h, 25 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2262766
Default Alt Text
D1700.diff (888 B)

Event Timeline