diff options
Diffstat (limited to 'sshkeyshare/sshkeyshare/keyshare_plugin.py')
-rw-r--r-- | sshkeyshare/sshkeyshare/keyshare_plugin.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sshkeyshare/sshkeyshare/keyshare_plugin.py b/sshkeyshare/sshkeyshare/keyshare_plugin.py index 7358efd..eb2a059 100644 --- a/sshkeyshare/sshkeyshare/keyshare_plugin.py +++ b/sshkeyshare/sshkeyshare/keyshare_plugin.py @@ -1,7 +1,7 @@ # ============LICENSE_START==================================================== # org.onap.ccsdk # ============================================================================= -# Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. +# Copyright (c) 2017,2020 AT&T Intellectual Property. All rights reserved. # ============================================================================= # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -21,13 +21,13 @@ import os from cloudify import ctx from cloudify.decorators import operation -@operation +@operation(resumable=True) def generate(**kwargs): """ Create SSH key pair """ tmpdir = '/tmp/{0}'.format(uuid.uuid4().hex) - os.mkdir(tmpdir, 0700) + os.mkdir(tmpdir, 0o700) os.system('ssh-keygen -t rsa -b 2048 -C "hadoop@cdapcluster" -N "" -f {0}/id_rsa'.format(tmpdir)) os.system('base64 -w 0 <{0}/id_rsa >{0}/id64'.format(tmpdir)) with open('{0}/id64'.format(tmpdir), 'r') as f: |