8000 Fill out important FrameworkInfo values if missing by tarnfeld · Pull Request #10 · wickman/pesos · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Fill out important FrameworkInfo values if missing #10

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our term 10000 s of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions pesos/scheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,12 @@ def __init__(self, scheduler, framework, master_uri, credential=None, context=No
self.detector = None
self.credential = credential

# 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)
def _wrapper(self, *args, **kw):
Expand Down
0