Undefined method each'for "VALUE_TRIMMED":String when importing salt states

Hello

Problem:
I am trying to import salt states from a salt smart proxy.
I am getting the error “Failed to list states for : undefined method `each’ for “VALUE_TRIMMED”:String”

The salt installation is functionnal and the state.highstates do actually work properly

Expected outcome:

Foreman and Proxy versions:
2.1.0 for both

Foreman and Proxy plugin versions:
ruby-smart-proxy-salt 2.1.9

Distribution and version:
Debian 10 Buster, for Foreman Server, and the Salt Master Server
Other relevant data:

salt is version 2019.2.5, packages from salstack official repo

logs from /var/log/foreman-proxy/proxy.log

2020-07-15T17:29:58 09efce37 [E] Failed to list states for : undefined method each' for "VALUE_TRIMMED":String 2020-07-15T17:29:58 09efce37 [W] Error details for Failed to list states for : undefined method each’ for “VALUE_TRIMMED”:String: : Failed to list states for : undefined method each' for "VALUE_TRIMMED":String 2020-07-15T17:29:58 09efce37 [W] Failed to list states for : undefined method each’ for “VALUE_TRIMMED”:String: : Failed to list states for : undefined method `each’ for “VALUE_TRIMMED”:String

Which environments are you using? Can you please list them here?
FYI: to get the salt states you need to have the environments configured first.

Hell Bernhard. Thanks for your message

I’m just using the “base” environment which is created in formeman

Do you have some special states in this env? Maybe remove all and add only one to see if there is maybe a state which doesn’t work. E.g. state with special chars, spaces, tabs…

---- jgathm via TheForeman schrieb ----

[https://community.theforeman.org/letter_avatar/jgathm/45/5_81c48a6156c45fac0d25db91e6a334df.png] jgathmhttps://community.theforeman.org/u/jgathm
July 16

Hell Bernhard. Thanks for your message

I’m just using the “base” environment which is created in formeman