Skip to content

Instantly share code, notes, and snippets.

@rmarchei
Created October 23, 2016 14:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rmarchei/538332786274ddedab6544e4d9a7b7f0 to your computer and use it in GitHub Desktop.
Save rmarchei/538332786274ddedab6544e4d9a7b7f0 to your computer and use it in GitHub Desktop.
artifactory.get_snapshot
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/salt/cli/caller.py", line 197, in call
ret['return'] = func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/salt/modules/artifactory.py", line 111, in get_snapshot
snapshot_url, file_name = _get_snapshot_url(artifactory_url=artifactory_url, repository=repository, group_id=group_id, artifact_id=artifact_id, version=version, packaging=packaging, snapshot_version=snapshot_version, classifier=classifier, headers=headers)
File "/usr/lib/python2.7/dist-packages/salt/modules/artifactory.py", line 204, in _get_snapshot_url
snapshot_version_metadata = _get_snapshot_version_metadata(artifactory_url=artifactory_url, repository=repository, group_id=group_id, artifact_id=artifact_id, version=version, headers=headers)
File "/usr/lib/python2.7/dist-packages/salt/modules/artifactory.py", line 358, in _get_snapshot_version_metadata
for snapshot_version in snapshot_versions:
TypeError: 'NoneType' object is not iterable
@rmarchei
Copy link
Author

rmarchei commented Oct 23, 2016

<metadata>
  <groupId>com.group_id</groupId>
  <artifactId>artifact_id</artifactId>
  <version>4.9.0-SNAPSHOT</version>
  <versioning>
    <snapshot>
      <buildNumber>1</buildNumber>
    </snapshot>
    <lastUpdated>20160503111606</lastUpdated>
  </versioning>
</metadata>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment