Skip to content

Commit 813f38f

Browse files
Merge pull request #146 from guidotijskens/version0140
oci-utils 0.14.0-0
2 parents 015ef75 + 5af590f commit 813f38f

File tree

109 files changed

+8905
-3964
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

109 files changed

+8905
-3964
lines changed

bin/oci-image-migrate

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
# Infrastructure instances. See the manual page for more information.
1010

1111
_PY3=/usr/bin/python3
12+
_PY_CMD=oci_image_migrate_main.py
1213
s_dir=`${_PY3} -c 'import os.path ; import oci_utils.impl ; print (os.path.dirname(oci_utils.impl.__file__))' 2>/dev/null`
1314

1415

15-
exec ${_PY3} ${s_dir}/migrate/oci-image-migrate-main.py "$@"
16+
exec ${_PY3} ${s_dir}/migrate/${_PY_CMD} "$@"

bin/oci-image-migrate-import

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
# Infrastructure instances. See the manual page for more information.
1010

1111
_PY3=/usr/bin/python3
12+
_PY_CMD=oci_image_migrate_import_main.py
1213
s_dir=`${_PY3} -c 'import os.path ; import oci_utils.impl ; print (os.path.dirname(oci_utils.impl.__file__))' 2>/dev/null`
1314

1415

15-
exec ${_PY3} ${s_dir}/migrate/oci-image-migrate-import-main.py "$@"
16+
exec ${_PY3} ${s_dir}/migrate/${_PY_CMD} "$@"

bin/oci-image-migrate-upload

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
# Infrastructure instances. See the manual page for more information.
1010

1111
_PY3=/usr/bin/python3
12+
_PY_CMD=oci_image_migrate_upload_main.py
1213
s_dir=`${_PY3} -c 'import os.path ; import oci_utils.impl ; print (os.path.dirname(oci_utils.impl.__file__))' 2>/dev/null`
1314

1415

15-
exec ${_PY3} ${s_dir}/migrate/oci-image-migrate-upload-main.py "$@"
16+
exec ${_PY3} ${s_dir}/migrate/${_PY_CMD} "$@"

bin/oci-iscsi-config

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22

3-
# Copyright (c) 2017, 2021 Oracle and/or its affiliates. All rights reserved.
3+
# Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
44
# Licensed under the Universal Permissive License v 1.0 as shown at
55
# http://oss.oracle.com/licenses/upl.
66

@@ -9,6 +9,7 @@
99
# Infrastructure instances. See the manual page for more information.
1010

1111
_PY3=/usr/bin/python3
12+
_PY_CMD=oci_iscsi_config_main.py
1213
s_dir=`${_PY3} -c 'import os.path ; import oci_utils.impl ; print (os.path.dirname(oci_utils.impl.__file__))' 2>/dev/null`
1314

1415
declare -A IQNS
@@ -26,7 +27,7 @@ declare -i post_operation_show=0
2627
if [ "${1:0:1}" != '-' ]
2728
then
2829
# execute as is as the command line do not start with an option dash-<something>
29-
exec ${_PY3} ${s_dir}/oci-iscsi-config-main.py "$@"
30+
exec ${_PY3} ${s_dir}/${_PY_CMD} "$@"
3031
fi
3132

3233
PARSED_ARGUMENTS=$(getopt -a --quiet -o sC:iAd:a:c:yf --long show,compartment:,interactive,all,detach:,attach:,create-volume:,destroy-volume:,volume-name:,username:,password:,help,yes,attach-volume,force -- "$@")
@@ -115,11 +116,11 @@ then
115116
fi
116117
if [ $post_operation_show -eq 1 ]
117118
then
118-
${_PY3} ${s_dir}/oci-iscsi-config-main.py $COMMAND ${cmd_line} --compat
119+
${_PY3} ${s_dir}/${_PY_CMD} $COMMAND ${cmd_line} --compat
119120
if [ $? -eq 0 ]
120121
then
121-
exec ${_PY3} ${s_dir}/oci-iscsi-config-main.py show --compat
122+
exec ${_PY3} ${s_dir}/${_PY_CMD} show --compat
122123
fi
123124
else
124-
exec ${_PY3} ${s_dir}/oci-iscsi-config-main.py $COMMAND ${cmd_line} --compat
125-
fi
125+
exec ${_PY3} ${s_dir}/${_PY_CMD} $COMMAND ${cmd_line} --compat
126+
fi

bin/oci-kvm

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,10 @@
1010

1111

1212
_PY3=/usr/bin/python3
13+
_PY_CMD=oci_kvm_main
1314
s_dir=`${_PY3} -c 'import os.path ; import oci_utils.impl ; print (os.path.dirname(oci_utils.impl.__file__))' 2>/dev/null`
1415

1516

16-
exec ${_PY3} ${s_dir}/virt/oci-kvm-main.py "$@"
17+
exec ${_PY3} ${s_dir}/virt/${_PY_CMD} "$@"
1718

1819

bin/oci-metadata

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/sh
22

3-
# Copyright (c) 2017, 2019 Oracle and/or its affiliates. All rights reserved.
3+
# Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
44
# Licensed under the Universal Permissive License v 1.0 as shown at
55
# http://oss.oracle.com/licenses/upl.
66

@@ -10,9 +10,10 @@
1010
# Infrastructure instances. See the manual page for more information.
1111

1212
_PY3=/usr/bin/python3
13+
_PY_CMD=oci_metadata_main.py
1314
s_dir=`${_PY3} -c 'import os.path ; import oci_utils.impl ; print (os.path.dirname(oci_utils.impl.__file__))' 2>/dev/null`
1415

1516

16-
exec ${_PY3} ${s_dir}/oci-metadata-main.py "$@"
17+
exec ${_PY3} ${s_dir}/${_PY_CMD} "$@"
1718

1819

bin/oci-network-config

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
# Infrastructure instances. See the manual page for more information.
99

1010
_PY3=/usr/bin/python3
11+
_PY_CMD=oci_network_config_main.py
1112
s_dir=`${_PY3} -c 'import os.path ; import oci_utils.impl ; print (os.path.dirname(oci_utils.impl.__file__))' 2>/dev/null`
1213

1314
declare COMMAND
@@ -36,10 +37,10 @@ then
3637
if [ $# -eq 0 ]
3738
then
3839
# former behavior : no option means '--show'
39-
exec ${_PY3} ${s_dir}/oci-network-config-main.py show --compat-output
40+
exec ${_PY3} ${s_dir}/${_PY_CMD} show --compat-output
4041
fi
4142
# execute as is as the command line do not start with an option dash-<something>
42-
exec ${_PY3} ${s_dir}/oci-network-config-main.py $@
43+
exec ${_PY3} ${s_dir}/${_PY_CMD} $@
4344
fi
4445

4546

@@ -195,12 +196,12 @@ fi
195196

196197
if [ $post_operation_show -eq 1 ]
197198
then
198-
${_PY3} ${s_dir}/oci-network-config-main.py $COMMAND ${cmd_line}
199+
${_PY3} ${s_dir}/${_PY_CMD} $COMMAND ${cmd_line}
199200
# print things as we used to do : include system interface as table , vnic as list etc..
200201
if [ $? -eq 0 ]
201202
then
202-
exec ${_PY3} ${s_dir}/oci-network-config-main.py show --compat-output
203+
exec ${_PY3} ${s_dir}/${_PY_CMD} show --compat-output
203204
fi
204205
else
205-
exec ${_PY3} ${s_dir}/oci-network-config-main.py $COMMAND ${cmd_line}
206+
exec ${_PY3} ${s_dir}/${_PY_CMD} $COMMAND ${cmd_line}
206207
fi

bin/oci-network-inspector

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
# Infrastructure instances. See the manual page for more information.
1010

1111
_PY3=/usr/bin/python3
12+
_PY_CMD=oci_network_inspector_main.py
1213
s_dir=`${_PY3} -c 'import os.path ; import oci_utils.impl ; print (os.path.dirname(oci_utils.impl.__file__))' 2>/dev/null`
1314

1415

15-
exec ${_PY3} ${s_dir}/oci-network-inspector-main.py "$@"
16+
exec ${_PY3} ${s_dir}/${_PY_CMD} "$@"

bin/oci-notify

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,14 @@
1111

1212

1313
_PY3=/usr/bin/python3
14+
_PY_CMD=oci_notify_main.py
1415
s_dir=`${_PY3} -c 'import os.path ; import oci_utils.impl ; print (os.path.dirname(oci_utils.impl.__file__))' 2>/dev/null`
1516

1617
declare COMMAND
1718
declare -A TOPICOCID
1819
declare -A MSGDATA
1920
declare -A MSGTITLE
20-
declare notify_exec="${s_dir}/oci-notify-main.py"
21+
declare notify_exec="${s_dir}/${_PY_CMD}"
2122

2223
if [ "${1:0:1}" != '-' ]
2324
then

bin/oci-public-ip

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111

1212

1313
_PY3=/usr/bin/python3
14+
_PY_CMD=oci_public_ip_main.py
1415
s_dir=`${_PY3} -c 'import os.path ; import oci_utils.impl ; print (os.path.dirname(oci_utils.impl.__file__))' 2>/dev/null`
1516

16-
exec ${_PY3} ${s_dir}/oci-public-ip-main.py "$@"
17+
exec ${_PY3} ${s_dir}/${_PY_CMD} "$@"
1718

0 commit comments

Comments
 (0)