diff options
| author | Kei Masumoto <masumotok@nttdata.co.jp> | 2011-02-18 14:15:04 +0900 |
|---|---|---|
| committer | Kei Masumoto <masumotok@nttdata.co.jp> | 2011-02-18 14:15:04 +0900 |
| commit | d88d74c9a0a28e0ebd6cedf694753b9ee9decdac (patch) | |
| tree | 8f44c51cea4ff9ca171a4d7b133223956a166c26 /nova/utils.py | |
| parent | ea5e1b141c787053bab273e127f986800cb1712b (diff) | |
fixed based on reviewer's comment.
1. erase wrapper function(remove/exists/mktempfile) from nova.utils.
2. nova-manage service describeresource(->describe_resource)
3. nova-manage service updateresource(->update_resource)
4. erase "my mistake print" statement
Additional changes are made at:
1. nova.image.s3.show
2. nova.compute.api.create
that's because instances cannot launched without this changes.
Diffstat (limited to 'nova/utils.py')
| -rw-r--r-- | nova/utils.py | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/nova/utils.py b/nova/utils.py index 966dde667..8d7ff1f64 100644 --- a/nova/utils.py +++ b/nova/utils.py @@ -337,24 +337,6 @@ def str_dict_replace(s, mapping): return s -def mktmpfile(dir): - """create tmpfile under dir, and return filename.""" - filename = datetime.datetime.utcnow().strftime('%Y%m%d%H%M%S') - fpath = os.path.join(dir, filename) - open(fpath, 'a+').write(fpath + '\n') - return fpath - - -def exists(filename): - """check file path existence.""" - return os.path.exists(filename) - - -def remove(filename): - """remove file.""" - return os.remove(filename) - - class LazyPluggable(object): """A pluggable backend loaded lazily based on some value.""" |
