Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

python::pip falls through to uninstalling the package if ensure doesn't match one of the patterns

オープン
#478 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
python
領域
devops

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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

主要言語
Ruby
スター
196
フォーク
371
平均マージ
5時間 54分
マージ済み PR(30日)
5

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

voxpupuli/puppet-python のほかの issue

voxpupuli/puppet-python の issue をすべて見る

似ている issue

Ruby の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。