Skip to content

Commit

Permalink
Workaround for old FabOS lacking config end marker
Browse files Browse the repository at this point in the history
Old versions of Fabric OS (at least v5.3.0) is lacking the nice comment
that shows we've reached the end of the config that newer versions have.
LicenceDB is shown near the end, so just if we see that consider we've
found the end of the configuration.
  • Loading branch information
toreanderson committed Apr 16, 2014
1 parent a1d5c9e commit c4016d5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions bin/brocaderancid.in
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,11 @@ sub ConfigShow {
$found_end = 1;
return(0);
}
if (/^LicenseDB:/) {
# We are very close to the end, and I don't know any better marker
# on the old FabOS version (v5.3.0)
$found_end = 1;
}
}
return(0);
}
Expand Down

0 comments on commit c4016d5

Please sign in to comment.