Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

issues running formula #34

Closed
ppwd opened this issue Jul 20, 2017 · 6 comments
Closed

issues running formula #34

ppwd opened this issue Jul 20, 2017 · 6 comments

Comments

@ppwd
Copy link

ppwd commented Jul 20, 2017

I was getting the following error running this updated formula.

Requisite declaration download-jdk-archive in SLS sun-java is not formed as a single key dictionary

changing the following block from

check-jdk-archive:
  module.run:
    - name: file.check_hash
    - path: {{ archive_file }}
    - file_hash: {{ java.source_hash }}
    - onchanges:
      - download-jdk-archive
    - require_in:
      - archive: unpack-jdk-archive

to

check-jdk-archive:
  module.run:
    - name: file.check_hash
    - path: {{ archive_file }}
    - file_hash: {{ java.source_hash }}
    - onchanges:
      - cmd: download-jdk-archive
    - require_in:
      - archive: unpack-jdk-archive

basically added the correct type of requisite (- cmd: download-jdk-archive)

@noelmcloughlin
Copy link
Member

I used same form in updated sun-java.env state, but now there seems to be some caveat? Does older Salt version require type to be explicit? Thank you.

`+ - require:

    • javahome-alt-install`

@ppwd
Copy link
Author

ppwd commented Jul 20, 2017

it's possible that it's not required in newer versions. Probably should have posted this before but i am running version (2015.8.8 (Beryllium))

I assumed it was a typo because the state directly following in the SLS (unpack-jdk-archive) also listens for changes, however it directly specifies the cmd portion.

@noelmcloughlin
Copy link
Member

@vutny Should I fix this general issue in my PR for backwards compatibility? Sounds like a bug.

@noelmcloughlin
Copy link
Member

@ppwd Could you test again please now, thanks

@ppwd
Copy link
Author

ppwd commented Aug 1, 2017

@noelmcloughlin

just tested this again with the latest changes and it appears to be fine now.

Thanks!

@noelmcloughlin
Copy link
Member

That's great news. Thanks for testing!!!

sroegner pushed a commit to sroegner/sun-java-formula that referenced this issue Aug 26, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant