From patchwork Mon Mar 19 19:38:04 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Cole Robinson X-Patchwork-Id: 132084 Delivered-To: patch@linaro.org Received: by 10.46.84.17 with SMTP id i17csp3114132ljb; Mon, 19 Mar 2018 12:41:50 -0700 (PDT) X-Google-Smtp-Source: AG47ELvcCHDFGJaIy1+mrkaViSGxiHkfInDYrzamTq1qRrDaEC93ltILpDMOPMz930Hdyh+M7FbY X-Received: by 2002:a9d:6217:: with SMTP id g23-v6mr9042399otj.354.1521488509905; Mon, 19 Mar 2018 12:41:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521488509; cv=none; d=google.com; s=arc-20160816; b=rMIGJF9/K+ojwYrd0tgB6iAq1t79fSNI/PuSq9XXQzJZkrfCVQQQsUJV5Xmr7aujWW op4THHPbQAoAlMVoju2qf5R+/9aGkt/ZObBoQucNmDcDhN0M1yCiJ7bAtNSDXSVzq53B ArPuM1KxHSL42i2R8zDc9rqBogzFyC+f+9F4cN9ksWQIFQMve9x7aidKvh/oLTLtg/AK RxSN9kzLLF7I91C235W2noTUs5E0A9+zkyD252133k6s819Ty/wWlFNrZETMz+EPjZkj d5u9GlQoKCv4jZpWQE6dQ9gQkRYBMJ7cWN7j7CBF6cPikLm6KQ49j/OoSo20lN1X8lQL qXbQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:cc:message-id:date:to:from:delivered-to :arc-authentication-results; bh=aJ06yT1BMyC/MniAk2kytZYpuOa0EqReMvM3Z8GTuVg=; b=vQAnjENc8MRzCUiMMtO34t4mj8UirrboM8Dgl/Gozc56G3nMUmGkCWH+2H7BrXN7Fa gd00wCmtyOUWEdtuewYFlXvmS4rRrvHModbTPviD2DvkU7FEKYNBdqZ53YQBjZiZ3vYA E0/gz+8uVDalL4tL7xkQLsv9BAIovOYuH5ot8gwKAxyXmQTwvKr7a1K8yRJTXFDWd56o LKxEbKFo4KTjYLZgqvDkx+ynF5BQvdnZaN13s91wdL0aOlV0v/FPhUFwsv+8XkkgIL3+ TP2kivZx9ZPCo4a9QlnSKt+hCebutoo1PdEwcOzGeKS/FPbfI+LQEPldJXc34fEu9ChY +1bQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of libvir-list-bounces@redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from mx1.redhat.com (mx1.redhat.com. [209.132.183.28]) by mx.google.com with ESMTPS id x92-v6si213918otb.520.2018.03.19.12.41.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 19 Mar 2018 12:41:49 -0700 (PDT) Received-SPF: pass (google.com: domain of libvir-list-bounces@redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; Authentication-Results: mx.google.com; spf=pass (google.com: domain of libvir-list-bounces@redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 37A1DC057FAD; Mon, 19 Mar 2018 19:41:48 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 50731BA82; Mon, 19 Mar 2018 19:41:47 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 0F9BB4CA99; Mon, 19 Mar 2018 19:41:45 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id w2JJcDYL009054 for ; Mon, 19 Mar 2018 15:38:13 -0400 Received: by smtp.corp.redhat.com (Postfix) id CE6A0620C4; Mon, 19 Mar 2018 19:38:13 +0000 (UTC) Delivered-To: libvirt-list@redhat.com Received: from worklaptop.redhat.com (ovpn-116-65.phx2.redhat.com [10.3.116.65]) by smtp.corp.redhat.com (Postfix) with ESMTP id 44907D1E7; Mon, 19 Mar 2018 19:38:10 +0000 (UTC) From: Cole Robinson To: libvirt-list@redhat.com Date: Mon, 19 Mar 2018 15:38:04 -0400 Message-Id: <8264138d48911e00add0afe6ff753e4043a8a393.1521488284.git.crobinso@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-loop: libvir-list@redhat.com Cc: Andrea Bolognani Subject: [libvirt] [PATCH] hyperv: Sync generator output between python versions X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.32]); Mon, 19 Mar 2018 19:41:49 +0000 (UTC) Yet another dependency on dict() hash ordering Signed-off-by: Cole Robinson --- src/hyperv/hyperv_wmi_generator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.14.3 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list Reviewed-by: Daniel P. Berrangé Reviewed-by: Andrea Bolognani diff --git a/src/hyperv/hyperv_wmi_generator.py b/src/hyperv/hyperv_wmi_generator.py index d54810211..6582fe1f1 100755 --- a/src/hyperv/hyperv_wmi_generator.py +++ b/src/hyperv/hyperv_wmi_generator.py @@ -271,7 +271,7 @@ class WmiClass: # isolate those that are common for all and keep track of their postions pos = 0 - for key in property_info: + for key in sorted(property_info): info = property_info[key] # exists in all class versions if info[1] == num_classes: