linsomniac / drbdlinks

A helper for DRBD which makes/reverts links into DRBD volumes.
GNU General Public License v2.0
8 stars 5 forks source link

do not add empty strings when checking for relative symlinks #2

Closed flaviogrossi closed 10 years ago

flaviogrossi commented 10 years ago

hi,

i think i found a problem when the check for symlinks in initialize_shared_storage is done

if no symlinks are found, an empty string is returned resulting in a value like [""] for the variable relative_symlinks, which evaluates to true in the test immediately after, raising an exception in the print statement

this should fix the problem

thanks, flavio

flaviogrossi commented 10 years ago

any news?