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

cannot deploy file with calc_md5=False,calc_sha1=False #44

Open
danielbsh opened this issue Oct 6, 2016 · 1 comment
Open

cannot deploy file with calc_md5=False,calc_sha1=False #44

danielbsh opened this issue Oct 6, 2016 · 1 comment

Comments

@danielbsh
Copy link

relrepo.deploy_file(os.path.join(".",art),calc_md5=False,calc_sha1=False)
File "/usr/local/lib/python2.7/dist-packages/artifactory.py", line 1092, in deploy_file
target.deploy(fobj, md5, sha1, parameters)
UnboundLocalError: local variable 'md5' referenced before assignment

since md5 and sha1 is not initialized

@xzr
Copy link

xzr commented Dec 18, 2017

Aye, should initialize the parameters:

def deploy_file(self,

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

2 participants