Bug 1306513
Summary: | python-virtualenv-1.10.1-2.el7: os.py:157:makedirs:OSError: [Errno 20] Not a directory: 'ansible/lib' | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Manish Saxena <msaxena> | ||||
Component: | python-virtualenv | Assignee: | Tomas Orsava <torsava> | ||||
Status: | CLOSED ERRATA | QA Contact: | David Jež <djez> | ||||
Severity: | medium | Docs Contact: | |||||
Priority: | medium | ||||||
Version: | 7.2 | CC: | cstratak, isenfeld, jberan, jkejda, pviktori, qe-baseos-apps, rpiddapa | ||||
Target Milestone: | rc | Keywords: | Patch | ||||
Target Release: | --- | ||||||
Hardware: | All | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | python-virtualenv-1.10.1-3.el7 | Doc Type: | Enhancement | ||||
Doc Text: |
Feature: Added an error message when virtual env is passed a FILE that already exists and is not a directory.
Reason: It's better to show a custom error message instead of a traceback.
Result: Error message is displayed when appropriate.
|
Story Points: | --- | ||||
Clone Of: | |||||||
: | 1353200 1353202 1353205 1353206 1353960 1357432 (view as bug list) | Environment: | |||||
Last Closed: | 2016-11-04 04:39:04 UTC | Type: | Bug | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Bug Depends On: | |||||||
Bug Blocks: | 1305230 | ||||||
Attachments: |
|
Description
Manish Saxena
2016-02-11 06:06:37 UTC
The behavior is correct but error message needs polishing.
Does this seem ok to you?
> $ touch ansible
> $ virtualenv scripts
ERROR: File already exists and is not a directory.
Please provide a different path or delete the file.
Created attachment 1134762 [details]
Polish error message of when file is passed
Attaching patch which fixes the issue.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHBA-2016-2360.html |