Browse code

Fix ironic port-create deprecated option

A recent ironicclient commit If05d51b09d787ccfbf6f6d35d8e752d42f673601
deprecated --node_uuid, now it should use --node.

Change-Id: Ia97074bd2ce92645ac4b4151824098cb99434117

Zhenzan Zhou authored on 2015/02/28 12:13:27
Showing 1 changed files
... ...
@@ -600,7 +600,7 @@ function enroll_nodes {
600 600
             $node_options \
601 601
             | grep " uuid " | get_field 2)
602 602
 
603
-        ironic port-create --address $mac_address --node_uuid $node_id
603
+        ironic port-create --address $mac_address --node $node_id
604 604
 
605 605
         total_nodes=$((total_nodes+1))
606 606
         total_cpus=$((total_cpus+$ironic_node_cpu))