latenighttales/alcali

Unable to execute a commande before parsing modules from a minion

baby-gnu opened this issue · 3 comments

Describe the bug

On a fresh installation of Alcali, I can't run a test.ping because alcali try to run null.

To Reproduce
Steps to reproduce the behavior:

  1. Having a salt-master with one or more minion
  2. Install a fresh alcali
  3. Go to Run menu
  4. Click in Target field
  5. Input * to target all minions
  6. Click in Function field
  7. Input test.ping
  8. Click on Run button

Expected behavior

The Results should dispaly the list of minion with True as output.

Output of a successful job

alcali-run-ok

Screenshots

Output of running the failed job

alcali-run

Details of the failed job

alcali-null-job

Desktop (please complete the following information):

  • OS: Debian Sid
  • Browser Firefox
  • Version 88.0.1-1

Additional context
Add any other context about the problem here.

i think the issue is around here
we definitely should not send the command if it is empty, and typing a command should behave as expected

@baby-gnu I found the problem. You have to make the combo-box lose focus before hitting run. That way the 'selectedFunction' variable in javascript gets updated.

Here is a stackoverflow post of someone with a similar issue: https://stackoverflow.com/questions/63896901/problem-with-updating-model-in-vuetify-combobox

fixed by #450