Skip to content

Commit

Permalink
Fill out the FrameworkInfo user if missing
Browse files Browse the repository at this point in the history
  • Loading branch information
tarnfeld committed Oct 14, 2014
1 parent b12939c commit 0efe1a7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pesos/scheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,8 @@ def __init__(self, scheduler, framework, master_uri, credential=None, context=No
# Fill out any missing FrameworkInfo values
if not self.framework.hostname:
self.framework.hostname = socket.getfqdn()
if not self.framework.user:
self.framework.user = getuser()

def locked(method):
@functools.wraps(method)
Expand Down

0 comments on commit 0efe1a7

Please sign in to comment.