1616class Config (BaseCommand ):
1717 """ Edge Filer General Configuration APIs """
1818
19- def __init__ (self , edge ):
20- super ().__init__ (edge )
21-
2219 def get_location (self ):
2320 """
2421 Get the location of the Edge Filer
@@ -67,7 +64,7 @@ def import_config(self, config, exclude=None):
6764 if isinstance (config , Device ):
6865 database = copy .deepcopy (config )
6966 elif isinstance (config , str ):
70- database = self .load_config (config )
67+ database = Config .load_config (config )
7168
7269 if exclude :
7370 delete_attrs (database , exclude )
@@ -92,7 +89,8 @@ def _import_configuration(self, path):
9289 logger .info ('Imported Edge Filer configuration.' )
9390 return response
9491
95- def load_config (self , config ):
92+ @staticmethod
93+ def load_config (config ):
9694 """
9795 Load the Edge Filer configuration
9896
@@ -126,6 +124,7 @@ def export(self, destination=None):
126124 handle = self ._edge .api .handle ('/export' )
127125 filepath = synfs .write (directory , filename , handle )
128126 logger .info ('Exported configuration. %s' , {'filepath' : filepath })
127+ return filepath
129128
130129 def is_wizard_enabled (self ):
131130 """
0 commit comments