1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

nmcli: Changed parameter ordering in create_connection_bond (#23571)

nmcli: Changed parameter ordering in create_connection_bond
This commit is contained in:
disappear89 2017-08-17 20:48:58 +02:00 committed by jctanner
parent 655667527d
commit d4cedbee20

View file

@ -810,6 +810,9 @@ class Nmcli(object):
cmd.append(self.ifname)
elif self.conn_name is not None:
cmd.append(self.conn_name)
if self.mode is not None:
cmd.append('mode')
cmd.append(self.mode)
if self.ip4 is not None:
cmd.append('ip4')
cmd.append(self.ip4)
@ -825,9 +828,6 @@ class Nmcli(object):
if self.autoconnect is not None:
cmd.append('autoconnect')
cmd.append(self.bool_to_string(self.autoconnect))
if self.mode is not None:
cmd.append('mode')
cmd.append(self.mode)
if self.miimon is not None:
cmd.append('miimon')
cmd.append(self.miimon)