Alon Bar-Lev has uploaded a new change for review.

Change subject: bootstrap: node id: sync dmidecode usage from vdsm
......................................................................

bootstrap: node id: sync dmidecode usage from vdsm

Instead of awking the full output of dmidecode, use explicit query.

Change-Id: Ifeea7fc5634bb393a198c4adbebcd69cd0d8438d
Signed-off-by: Alon Bar-Lev <[email protected]>
---
M 
backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/config/ConfigValues.java
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/95/7595/1

diff --git 
a/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/config/ConfigValues.java
 
b/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/config/ConfigValues.java
index 1ba03df..0dd98fa 100644
--- 
a/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/config/ConfigValues.java
+++ 
b/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/config/ConfigValues.java
@@ -1399,7 +1399,7 @@
     @Reloadable
     @TypeConverterAttribute(String.class)
     @DefaultValueAttribute(
-            "dmidecode | awk ' /UUID/{ print $2; } ' | tr '\n' '_' && " +
+            "dmidecode -s system-uuid | sed 's/ .*//' | tr '\n' '_' && " +
             "(" +
                 "find /sys/class/net/*/device | while read f; do " +
                     "cat \"$(dirname \"$f\")/address\"; " +


--
To view, visit http://gerrit.ovirt.org/7595
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ifeea7fc5634bb393a198c4adbebcd69cd0d8438d
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Alon Bar-Lev <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to