Formatting the get_gateway() method in the CsDatabag.py file

This commit is contained in:
Wilder Rodrigues 2015-09-25 16:11:32 +02:00
parent 3cfc4cff80
commit 595fa50b3b

View File

@ -143,6 +143,7 @@ class CsCmdLine(CsDataBag):
md5 = hashlib.md5()
md5.update(passwd)
return md5.hexdigest()
def get_gateway(self):
if "gateway" in self.idata():
return self.idata()['gateway']