-
Notifications
You must be signed in to change notification settings - Fork 6
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 terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
added availability flags and logic for genesis setting #77
base: spyglass
Are you sure you want to change the base?
Conversation
spyglass/data_extractor/formation.py
Outdated
node_type = 'genesis' | ||
genesis_set = True | ||
else: | ||
node_type = 'genesis' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
node_type should be genesis in else loop?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This has been fixed. It should be controller
hosts_list = [] | ||
genesis_set = False |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it a design rule to take first node as genesis or hardcoded?
Instead of introducing new flag, why cant the first element is taken out of control_host, handle genesis stuff. And then for loop from [1:]
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left it for readability sake we can loop fron [1: ] also
|
||
|
||
1. Running Spyglass with Remote Data Source | ||
-s, --site TEXT Specify the site for which manifests to be |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we create plugin as the sub command to spyglass, this will cleanup this help to an extent.
e.g.: spyglass [options] plugin_name [ options]
spyglass --loglevel 10 tugboat ...
No description provided.