Werk #7082: Fixed "omd create" when fstab has 0 bytes

Component Site management
Title Fixed "omd create" when fstab has 0 bytes
Date Feb 7, 2019
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed
Checkmk versions & editions
1.6.0b1 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk MSP (CME)
1.5.0p12 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk MSP (CME)

The "omd create" command failed with a "IndexError: string index out of range" in case a /etc/fstab file existed but was empty. While regular systems most likely have entries in there, this can often happen for containers.

To the list of all Werks