diff options
author | Tiago Gomes <tiago.gomes@codethink.co.uk> | 2013-07-02 07:24:30 +0000 |
---|---|---|
committer | Tiago Gomes <tiago.gomes@codethink.co.uk> | 2013-07-02 07:24:30 +0000 |
commit | 21fa4e7da4c566ecaba3cc70dedb74c982674832 (patch) | |
tree | b24e7e233d0269d9977af448100a30f40afb1146 | |
parent | 2a52a1b530e2a430a34a28255ec9a2dff4f34534 (diff) | |
download | definitions-21fa4e7da4c566ecaba3cc70dedb74c982674832.tar.gz |
Allow to set the number of cpus for virtualbox and kvm deployments.
-rw-r--r-- | writeexts.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/writeexts.py b/writeexts.py index 410b8c9f..2a54d757 100644 --- a/writeexts.py +++ b/writeexts.py @@ -124,6 +124,10 @@ class WriteExtension(cliapp.Application): '''Parse RAM size from environment.''' return self._parse_size_from_environment('RAM_SIZE', '1G') + def get_vcpu_count(self): + '''Parse the virtual cpu count from environment.''' + return self._parse_size_from_environment('VCPUS', '1') + def create_state(self, real_root): '''Create the state subvolumes that are shared between versions''' |