by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Danny
    @aut0gun_twitter
    10k is the lowest I can get after filtering etc. :)
    Iaroslav Shepilov
    @bugy
    oh my...
    Iaroslav Shepilov
    @bugy
    the thing is: if you remove an option from HTML dropdown, it will exclude it from selected values
    Danny
    @aut0gun_twitter
    Seems like https://vue-multiselect.js.org can have a :options-limit but I guess vue-multiselect is not used in script-server, correct?
    Iaroslav Shepilov
    @bugy
    Unfortunately not :(
    Melodon
    @Melodoni
    hey guys, maybe somone of you can help me. i have created ab issue report bugy/script-server#326 - i dont know what to do anymore ^^"
    Iaroslav Shepilov
    @bugy
    @Melodoni I answered you there :)
    Melodon
    @Melodoni

    @bugy Thanks for the reply, i fixt my own failure :D

    BTW, awsome Project. Thats exactly what i needed. :)

    realroywalker
    @realroywalker
    Hey all, I have a question regarding list usage, but github didn't feel like the best place to ask..
    I have a script that i'd like to use two lists with - the first list contains a list of host servers, and the second list should then contain a list of VM's on that selected host
    https://github.com/bugy/script-server/wiki/Script-config#list - shows that a list can be populated by results of a script, no problem.. I have this working - but it also shows that {parameters} can be given to the script that is to be executed.
    How does that work, as the list only seems to populate when the script is first selected from the script-server menu - if I change the selected value of the first list, the second list values are already populated, so it does not execute the script again....
    Iaroslav Shepilov
    @bugy
    @realroywalker whenever you change value, dependant list should be updated
    You can check pararameterized configuration from samples
    realroywalker
    @realroywalker
    Thanks - just checking now. Should that work the same if the second list is 'multiselect' type ? - I just realised I'm using that to achieve the tick boxes I need... but the docs seem to suggest that populating it should be the same.
    Iaroslav Shepilov
    @bugy
    should be working for multiselect as well
    realroywalker
    @realroywalker
    Ah found the issue - don't use 'default' value in the first list
    if I set an initial default, it never changes the second list, even when the first list value is changed
    (it's always populated by the default)
    Iaroslav Shepilov
    @bugy
    hmm, sounds weird
    it should work with default as well
    realroywalker
    @realroywalker
    hmm.. i'm just putting it back in to be sure - but it started working as soon as i took out the default, as that was the only difference I could see between what I have, and the example config
    Iaroslav Shepilov
    @bugy
    true
    sounds like a bug
    I reproduced it
    could you open a bug please?
    realroywalker
    @realroywalker
    Sure will do
    Iaroslav Shepilov
    @bugy
    ah
    wait
    not really
    works for me, I just looked at a wrong place
    realroywalker
    @realroywalker
    Is there any way to display the loading bar at the top when the list is populating after a change? - the user doesn't seem to have any feedback that the list is still loading new values, so it retains old values until the script finishes
    Ah yeah, my bad - I think that is the issue actually... I have default back and it does indeed work
    I think it threw us as with 'default' set, the loading bar appears at the top when the script starts (as it waits to populate using the result from the script)
    Iaroslav Shepilov
    @bugy
    Is there any way to display the loading bar
    I think it's a good idea, you can add it to tickets backlog
    realroywalker
    @realroywalker
    but when the value gets changed, there is basically no feedback that something is happening... so we thought it didn't work... however after 10 seconds or so, the values get replaced
    Sure, will put a ticket into github - if there is a local tweak I can make to test out behaviour etc. then I'm happy to edit the local python :)
    realroywalker
    @realroywalker
    Raised #338 - as always, thanks for the assistance, and great work.
    Iaroslav Shepilov
    @bugy
    thanks!
    unfortunately "local tweak" won't work here :( Client side has absolutely no idea about these dependencies and server just pushes the current state to the UI when something changes
    AR
    @aratechh
    Can anyone give the steps to enable auth with htpasswd? Thanks in adv.
    Iaroslav Shepilov
    @bugy
    Hi @aratechh did you check this comment?
    Basically you have to create htpasw file (just a normal one) and then set the path to it in script server
    AR
    @aratechh
    @bugy Thanks I did the same but I get the following error:
    Traceback (most recent call last):
    File "/opt/scriptserver/script-server/launcher.py", line 11, in <module>
    main.main()
    File "src/main.py", line 79, in main
    server_config = server_conf.from_json(SERVER_CONF_PATH, TEMP_FOLDER)
    File "src/model/server_conf.py", line 103, in from_json
    config.authenticator = create_authenticator(auth_config, temp_folder)
    File "src/model/server_conf.py", line 158, in create_authenticator
    authenticator = HtpasswdAuthenticator(auth_object)
    File "src/auth/auth_htpasswd.py", line 26, in init
    htpasswd_path = model_helper.read_obligatory(params_dict, 'htpasswd_path', ' for htpasswd auth')
    File "src/model/model_helper.py", line 38, in read_obligatory
    raise Exception('"' + key + '" is required attribute' + error_suffix)
    Exception: "htpasswd_path" is required attribute for htpasswd auth
    ...
    I can reach the admin protal with the above configuration but the htpasswd is not working
    AR
    @aratechh

    "port": 5000,
    "address": "0.0.0.0",
    "title": "My Script Server",
    "access": {
    "allowed_users": [ "" ],
    "admin_users": [ "
    " ]
    },
    "auth": {
    "type": "htpasswd",
    "htpasswd_path": "/opt/scriptserver/script-server/users/.htpasswd"
    }

    }

    Iaroslav Shepilov
    @bugy
    The config looks good
    I'll check tomorrow