-
Notifications
You must be signed in to change notification settings - Fork 241
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
Validate chronos #134
Validate chronos #134
Conversation
for cluster in list_clusters(service, soa_dir, instance_type): | ||
for instance in list_all_instances_for_service(service, instance_type, soa_dir): | ||
cjc = load_chronos_job_config(service, instance, cluster, False, soa_dir) | ||
(checks_passed, check_msgs) = cjc.validate() |
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.
you don't need to wrap these in brackets.
@solarkennedy Added the clusters argument back to list_all_instances_for_service. I think that addresses the last outstanding issue needing fixing. |
def path_to_soa_dir_service(service_path): | ||
soa_dir = os.path.dirname(service_path) | ||
service = os.path.basename(service_path) | ||
|
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.
remove this whitespace
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.
Gone
9462d05
to
3ff7737
Compare
Got a verbal ship-it, so I'm going to merge this. |
Add some chronos validation to the
paasta validate
command. This fixes #127