def export_as_troposphere(self):
    out = {}
    for (key, command_obj) in self.items():
        command_dict = {}
        for name in ('command', 'env', 'cwd', 'test', 'ignore_errors'):
            value = getattr(command_obj, name)
            if (name == 'ignore_errors'):
                name = 'ignoreErrors'
            if (value != None):
                command_dict[name] = value
        out[key] = command_dict
    return out
def export_as_troposphere(self):
    out = {}
    for (key, command_obj) in self.items():
        command_dict = {}
        for name in ('command', 'env', 'cwd', 'test', 'ignore_errors'):
            value = getattr(command_obj, name)
            if (name == 'ignore_errors'):
                name = 'ignoreErrors'
            if (value != None):
                command_dict[name] = value
        out[key] = command_dict
    return out