def export_as_troposphere(self):
    out = {}
    for (key, service_obj) in self.items():
        service_dict = {}
        for name in ('ensure_running', 'enabled', 'files', 'sources', 'packages', 'commands'):
            value = getattr(service_obj, name)
            if (name == 'ensure_running'):
                name = 'ensureRunning'
            if (value != None):
                service_dict[name] = value
        out[key] = service_dict
    return out
def export_as_troposphere(self):
    out = {}
    for (key, service_obj) in self.items():
        service_dict = {}
        for name in ('ensure_running', 'enabled', 'files', 'sources', 'packages', 'commands'):
            value = getattr(service_obj, name)
            if (name == 'ensure_running'):
                name = 'ensureRunning'
            if (value != None):
                service_dict[name] = value
        out[key] = service_dict
    return out