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

Deployment configuration updates fail when using IoTHubConfigurationManager.update_configuration

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

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

評価

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

調査の方向性

IoTHubConfigurationManager.update_configuration から始め、提供された再現手順と返された etag を使って、その request を get_configuration と比較してください。target_condition を変更すると Conflict が発生する理由を調査してください。既存の deployment を正常に更新でき、このシナリオに対して回帰が検証できれば完了です。

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

説明

bug

Context

  • OS and version used: MacOS 11.6.4
  • Python version: 3.7.5
  • pip version: 20.2.3
  • list of installed packages: azure-iot-hub 2.6.0

Description of the issue

It is not possible to update a device configuration using IoTHubConfigurationManager.update_configuration. All requests result in Operation returned an invalid status code 'Conflict'. In the code example below, I retrieve an existing configuration, change the target_condition and then attempt to update it.

Code sample exhibiting the issue

from msrest.exceptions import HttpOperationError
from azure.iot.hub import IoTHubConfigurationManager

config_service = IoTHubConfigurationManager(iothub_conn_str)

# retrieve an existing deployment
current_config = config_service.get_configuration("my_deployment")
print(current_config)

# change the target condition
current_config.target_condition = "tags.environment='test'"

try:
    config_service.update_configuration(current_config, current_config.etag)
except HttpOperationError as ex:
    print(ex)
主要言語
Python
スター
18
フォーク
24
PR マージ指標
30日以内にマージされた PR はありません

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

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

Azure/azure-iot-hub-python のほかの issue

Azure/azure-iot-hub-python の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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