Skip to content

2017.7: module.wait used as in documentation provides deprecation warning #47033

@Talkless

Description

@Talkless

Description of Issue/Question

running module.wait with 2017.7.5 produces warning The function "module.run" is using its deprecated version and will expire in version "Sodium".:

2018-04-12 16:48:20,109 [salt.state       :1794][INFO    ][9992] Executing state module.mod_watch for [cmd.shell]
2018-04-12 16:48:20,110 [salt.utils.decorators:613 ][WARNING ][9992] The function "module.run" is using its deprecated version and will expire in version "Sodium".
2018-04-12 16:48:20,110 [salt.loaded.int.module.cmdmod:394 ][INFO    ][9992] Executing command 'echo salt-call --local service.restart salt-minion | at now + 1 minute' in directory '/root'

I know that module.run has new way of specifying modules to be executed, but there is no instructions on how module.wait should use new declaration style. Using it as before produces mentioned deprecation warning.

Setup

My minion-restarting state (changing minion conf invokes this)

salt_minion_restart:
    module.wait:
        - name: cmd.shell
        - cmd: echo salt-call --local service.restart salt-minion | at now + 1 minute
        - order: last

Steps to Reproduce Issue

Make module.wait to run, logs are above.

Versions Report

Salt Version:
           Salt: 2017.7.5
 
Dependency Versions:
           cffi: 0.8.6
       cherrypy: Not Installed
       dateutil: 2.2
      docker-py: Not Installed
          gitdb: 0.5.4
      gitpython: 0.3.2 RC1
          ioflo: Not Installed
         Jinja2: 2.9.4
        libgit2: Not Installed
        libnacl: Not Installed
       M2Crypto: Not Installed
           Mako: 1.0.0
   msgpack-pure: Not Installed
 msgpack-python: 0.4.2
   mysql-python: 1.2.3
      pycparser: 2.10
       pycrypto: 2.6.1
   pycryptodome: Not Installed
         pygit2: Not Installed
         Python: 2.7.9 (default, Jun 29 2016, 13:08:31)
   python-gnupg: Not Installed
         PyYAML: 3.11
          PyZMQ: 14.4.0
           RAET: Not Installed
          smmap: 0.8.2
        timelib: Not Installed
        Tornado: 4.2.1
            ZMQ: 4.0.5
 
System Versions:
           dist: debian 8.10 
         locale: UTF-8
        machine: x86_64
        release: 3.16.0-5-amd64
         system: Linux
        version: debian 8.10 

Metadata

Metadata

Assignees

No one assigned

    Labels

    pending-discussionThe issue or pull request needs more discussion before it can be closed or mergedstale

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions