aboutsummaryrefslogtreecommitdiff
path: root/scripts/qmp/qemu-ga-client
diff options
context:
space:
mode:
authorJohn Snow <jsnow@redhat.com>2021-06-04 11:55:22 -0400
committerJohn Snow <jsnow@redhat.com>2021-06-18 16:10:06 -0400
commit9510e4fb6967c39871b149676e09bb7ee875bc18 (patch)
treedb8a6785c60a8e85ad601240551e3d6c9a38e224 /scripts/qmp/qemu-ga-client
parent176c5490724b813704bd5b083b9f5c9b857fdaad (diff)
downloadqemu-9510e4fb6967c39871b149676e09bb7ee875bc18.zip
qemu-9510e4fb6967c39871b149676e09bb7ee875bc18.tar.gz
qemu-9510e4fb6967c39871b149676e09bb7ee875bc18.tar.bz2
scripts/qemu-ga-client: apply isort rules
Hint: > ln -s scripts/qmp/qemu-ga-client python/qemu/qmp/qemu_ga_client.py > cd python > isort qemu Signed-off-by: John Snow <jsnow@redhat.com> Message-id: 20210604155532.1499282-2-jsnow@redhat.com Signed-off-by: John Snow <jsnow@redhat.com>
Diffstat (limited to 'scripts/qmp/qemu-ga-client')
-rwxr-xr-xscripts/qmp/qemu-ga-client9
1 files changed, 5 insertions, 4 deletions
diff --git a/scripts/qmp/qemu-ga-client b/scripts/qmp/qemu-ga-client
index 348d858..97f4047 100755
--- a/scripts/qmp/qemu-ga-client
+++ b/scripts/qmp/qemu-ga-client
@@ -36,10 +36,11 @@
# See also: https://wiki.qemu.org/Features/QAPI/GuestAgent
#
-import os
-import sys
import base64
+import os
import random
+import sys
+
sys.path.append(os.path.join(os.path.dirname(__file__), '..', '..', 'python'))
from qemu import qmp
@@ -279,9 +280,9 @@ def main(address, cmd, args):
if __name__ == '__main__':
- import sys
- import os
import optparse
+ import os
+ import sys
address = os.environ['QGA_CLIENT_ADDRESS'] if 'QGA_CLIENT_ADDRESS' in os.environ else None