'Prints boot entry information
boottool is frequently called with \'all\' lowercase, but
grubby expects it to be uppercase'

def action_info(self):

    if (not self.opts.info):
        self.log.error('Parameter    to    info    is    required')
        return (-1)
    info_index = self.opts.info
    if (not ((info_index.lower() == 'all') or self.opts.info.isdigit())):
        self.log.error('Parameter    to    info    should    be    either    "all",    "ALL"    or    an    integer    index')
        return (-1)
    if (info_index == 'all'):
        info_index = 'ALL'
    if (info_index == 'ALL'):
        entries = self.grubby.get_entries()
    else:
        entries = {info_index: self.grubby.get_entry(info_index)}
    for (index, entry) in entries.items():
        print
        for (key, val) in entry.items():
            if isinstance(val, str):
                if (val.startswith('"') and val.endswith('"')):
                    val = val[1:(-1)]
            print ('%-8s:    %s' % (key, val))
