Skip to content

salt-ssh does not use custom utils #53666

@clinta

Description

@clinta

Description of Issue

Custom utils in _utils do not work with salt-ssh

Setup

_modules/foo.py:

import salt.utils.foo

def foo():
    return salt.utils.foo.foo()

_utils/foo.py:

def foo():
    return "foo"

Steps to Reproduce Issue

$ salt-ssh --regen-thin minion foo.foo          

minion:
    ----------
    retcode:
        255
    stderr:
        'foo' __virtual__ returned False: No module named foo
    stdout:

Versions Report

$ salt-ssh --versions-report
Salt Version:
           Salt: 2019.2.0
 
Dependency Versions:
           cffi: Not Installed
       cherrypy: Not Installed
       dateutil: Not Installed
      docker-py: Not Installed
          gitdb: Not Installed
      gitpython: Not Installed
          ioflo: Not Installed
         Jinja2: 2.10.1
        libgit2: Not Installed
        libnacl: Not Installed
       M2Crypto: 0.34.0
           Mako: Not Installed
   msgpack-pure: Not Installed
 msgpack-python: 0.6.1
   mysql-python: Not Installed
      pycparser: Not Installed
       pycrypto: 3.8.2
   pycryptodome: Not Installed
         pygit2: Not Installed
         Python: 2.7.16 (default, Mar 11 2019, 18:59:25)
   python-gnupg: Not Installed
         PyYAML: 5.1
          PyZMQ: 18.0.1
           RAET: Not Installed
          smmap: Not Installed
        timelib: Not Installed
        Tornado: 5.1.1
            ZMQ: 4.3.1
 
System Versions:
           dist:   
         locale: UTF-8
        machine: x86_64
        release: 5.1.15-arch1-1-ARCH
         system: Linux
        version: Not Installed

Metadata

Metadata

Assignees

No one assigned

    Labels

    Featurenew functionality including changes to functionality and code refactors, etc.Salt-SSH

    Type

    No type

    Projects

    Status

    Done

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions