Skip to content

Commit

Permalink
fix: port int null bug
Browse files Browse the repository at this point in the history
  • Loading branch information
deploy committed Mar 21, 2019
1 parent 23b97cc commit b2b984f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion app/main/deploy.py
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,13 @@ def getport(self):

Result = self.exec_shell(shell_cmd)
portlist = Result['log'].strip().split('\n')
return portlist
pl = []
for port in portlist:
if port == '':
return ['']
self.addlog('getport port: %s' %(port))
pl.append(int(port))
return pl


def check_code_update(self):
Expand Down

0 comments on commit b2b984f

Please sign in to comment.