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

Uniqueness of hostRequirements #55

Open
ryyakobe opened this issue Dec 5, 2024 · 0 comments
Open

Uniqueness of hostRequirements #55

ryyakobe opened this issue Dec 5, 2024 · 0 comments

Comments

@ryyakobe
Copy link

ryyakobe commented Dec 5, 2024

Description

It seems that OpenJobDescription doesn't specify that names for different hostRequirement should be unique. Python library also doesn't enforce name uniqueness, so it's possible to create a template with 2 different host requirements for the same step that have exactly the same name:

  hostRequirements:
    amounts:
    - name: amount.sameName
      min: 1
    - name: amount.sameName
      min: 4

This seems to be error-prone and I wonder if there is a use-case for allowing the same name for host requirements or maybe the specification should enforce name uniqueness?

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