Skip to content

Commit

Permalink
cls_context fix for non dev PC's to return dict instead of nonetype […
Browse files Browse the repository at this point in the history
…fix for python 3.5]
  • Loading branch information
acutesoftware committed Jan 29, 2017
1 parent f90263f commit d468e7f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion aikif/lib/cls_context.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# Change User Settings below (currently hard coded)
hosts = [
dict(type='Work PC', name='xxxxxxxxx'),
dict(type='Home PC', name='Treebeard'),
dict(type='Home PC', name='treebeard'),
dict(type='Laptop', name='Ent'),
dict(type='Server', name='Fangorn'),
dict(type='Phone', name='GT-19001T'),
Expand Down Expand Up @@ -122,6 +122,7 @@ def get_host(self):
for h in hosts:
if h['name'] == host_name:
return h['type'], h['name']
return dict(type='Unknown', name=host_name)

def get_user(self):
"""
Expand Down

0 comments on commit d468e7f

Please sign in to comment.