Fix bug in mako template

Fix a bug in the settings manager mako template, which was causing
some of the settings manager code (header includes and using namespaces)
to not be generated appropriately.

Change-Id: Ie55fb2f0d637a842dd59148fefe4e3ed6aa75808
Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
diff --git a/settings_manager.mako.hpp b/settings_manager.mako.hpp
index 2f97985..acdf66d 100644
--- a/settings_manager.mako.hpp
+++ b/settings_manager.mako.hpp
@@ -4,6 +4,8 @@
 
 <%
 objects = list(settingsDict.viewkeys())
+ns_list = []
+includes = []
 
 def get_setting_type(setting_intf):
     setting = "sdbusplus::" + setting_intf.replace('.', '::')
@@ -15,7 +17,6 @@
 
 % for object in objects:
 <%
-    includes = []
     include = settingsDict[object]['Interface']
     include = include.replace('.', '/')
     include = include + "/server.hpp"
@@ -28,7 +29,6 @@
 
 % for object in objects:
 <%
-    ns_list = []
     ns = get_setting_type(settingsDict[object]['Interface'])
     i = ns.rfind('::')
     ns = ns[:i]