-
Notifications
You must be signed in to change notification settings - Fork 19
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
powerman: when status and status_all are defined, use status_all only on full pluglist #156
Changes from all commits
db02fcc
0c1a1d7
4e7ea64
9992f96
ac7726c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -683,8 +683,12 @@ static int _enqueue_targeted_actions(Device * dev, int com, hostlist_t hl, | |
pluglist_iterator_destroy(itr); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Commit message:
Makes it sound like "all" is never called if the singlet exists. Maybe "only call the
s/nodes/plugs/ |
||
|
||
/* Try _all version of script. | ||
* | ||
* - use if action is a query, unless no singlet version exists | ||
* (i.e. if there is no singlet version, we have to use the _all | ||
* version) | ||
*/ | ||
if (all || _is_query_action(com)) { | ||
if (all || (_is_query_action(com) && dev->scripts[com] == NULL)) { | ||
int ncom = _get_all_script(dev, com); | ||
|
||
if (ncom != -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.
In the commit message for this, it would probably be good to mention that the current behavior is changing so that the untested singletons would start to get used, so this change just preserves the existing behavior.