python::pip falls through to uninstalling the package if ensure doesn't match one of the patterns
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 35/100
Hướng nghiên cứu
Start with manifests/pip.pp around line 274 and reproduce the provided python::pip resource using an unrecognized ensure value. Done means the resource reports an error for that value and does not run the uninstall action.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Affected Puppet, Ruby, OS and module versions/distributions
- Puppet: 3.7.2
- Ruby: 2.1.5p273
- Distribution: Debian
- Module version: v2.1.1
How to reproduce (e.g Puppet code you use)
python::pip { 'wal-e' :
ensure => 'v1.1.0',
pkgname => 'wal-e',
pip_provider => 'pip',
virtualenv => '/var/local/py-virtual-env/wal-e',
owner => 'root',
extras => ['aws'],
timeout => 1800
}
What are you seeing
python::pip uninstalls the wal-e package because uninstall is the default:
https://github.com/voxpupuli/puppet-python/blob/master/manifests/pip.pp#L274
What behaviour did you expect instead
An error on an unrecognized value instead of a default action of removing the package.
Output log
Notice: /Stage[main]/Nni::Wal_e_virtualenv/Python::Pip[wal-e]/Exec[pip_uninstall_wal-e]/returns: executed successfully
Any additional information you'd like to impart
- Ngôn ngữ chính
- Ruby
- Star
- 196
- Fork
- 371
- Merge trung bình
- 5 giờ 54 phút
- Pull request đã merge (30 ngày)
- 5
Chuẩn bị môi trường
Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của voxpupuli/puppet-python
-
Requirements not installedĐang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 67/100
voxpupuli/puppet-python#759 ·
-
bug
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 45/100
voxpupuli/puppet-python#743 · 1 bình luận ·
-
enhancement
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
voxpupuli/puppet-python#721 · 1 reaction ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
voxpupuli/puppet-python#711 · 1 bình luận ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 52/100
voxpupuli/puppet-python#673 · 1 bình luận ·
Tất cả issue của voxpupuli/puppet-python
Issue tương tự
-
dependencies Difficulty: Easy Good First Issue
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 82/100
rubyforgood/casa#7325 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
davidteren/mutineer#364 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày