Skip to content

Commit dffbc02

Browse files
committed
fix some headers
1 parent 4826ed0 commit dffbc02

File tree

7 files changed

+21
-4
lines changed

7 files changed

+21
-4
lines changed

lib/oci_utils/kvm/utils.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
# oci-utils
22
#
33
# Copyright (c) 2018 Oracle and/or its affiliates. All rights reserved.
4-
# Licensed under the Universal Permissive License v 1.0 as shown at http://oss.oracle.com/licenses/upl.
4+
# Licensed under the Universal Permissive License v 1.0 as shown
5+
# at http://oss.oracle.com/licenses/upl.
56

67
import os
78
import subprocess
89

10+
911
def _call(cmd, log_output=True):
1012
"""
1113
Executes a comand and returns the exit code
@@ -21,6 +23,7 @@ def _call(cmd, log_output=True):
2123
return e.returncode
2224
return 0
2325

26+
2427
def _call_output(cmd, log_output=True):
2528
"""
2629
Executes a command and returns stdout and stderr in a single string
@@ -36,13 +39,14 @@ def _call_output(cmd, log_output=True):
3639
return None
3740
return None
3841

42+
3943
def _call_popen_output(cmd, log_output=True):
4044
"""
4145
Executes a command and returns stdout and stderr in a single string
4246
"""
4347
cmd.insert(0, 'sudo')
4448
try:
45-
p = subprocess.Popen(' '.join(cmd), shell = True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
49+
p = subprocess.Popen(' '.join(cmd), shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
4650
return p.communicate()[0]
4751
except OSError as e:
4852
return 404

libexec/oci-image-cleanup

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
#!/bin/bash
2+
# Copyright (c) 2018, 2019 Oracle and/or its affiliates. All rights reserved.
3+
# Licensed under the Universal Permissive License v 1.0 as shown
4+
# at http://oss.oracle.com/licenses/upl.
25

36
# This script runs a set of cleanup steps to prepare instance for snapshot
47

setup.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11

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

46
""" Build an rpm from oci-utils.
57
"""

tests/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Copyright (c) 2020 Oracle and/or its affiliates. All rights reserved.
2+
# Licensed under the Universal Permissive License v 1.0 as shown
3+
# at http://oss.oracle.com/licenses/upl.

tools/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Copyright (c) 2020 Oracle and/or its affiliates. All rights reserved.
2+
# Licensed under the Universal Permissive License v 1.0 as shown
3+
# at http://oss.oracle.com/licenses/upl.

tools/decorators.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#!/usr/bin/python
21

32
# Copyright (c) 2018 Oracle and/or its affiliates. All rights reserved.
43
# Licensed under the Universal Permissive License v 1.0 as shown

tools/execution/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Copyright (c) 2020 Oracle and/or its affiliates. All rights reserved.
2+
# Licensed under the Universal Permissive License v 1.0 as shown
3+
# at http://oss.oracle.com/licenses/upl.

0 commit comments

Comments
 (0)