Rename Storage.create_on_disk to Storage.create
This commit is contained in:
		
							parent
							
								
									930fe417a8
								
							
						
					
					
						commit
						a4577c0dce
					
				| @ -133,9 +133,8 @@ class Storage(object): | |||||||
|         ''' Resize volume ''' |         ''' Resize volume ''' | ||||||
|         self.get_pool(volume).resize(volume, size) |         self.get_pool(volume).resize(volume, size) | ||||||
| 
 | 
 | ||||||
|     # TODO rename it to create() |     def create(self, source_template=None): | ||||||
|     def create_on_disk(self, source_template=None): | 
 | ||||||
|         # :pylint: disable=missing-docstring |  | ||||||
|         if source_template is None and hasattr(self.vm, 'template'): |         if source_template is None and hasattr(self.vm, 'template'): | ||||||
|             source_template = self.vm.template |             source_template = self.vm.template | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -1144,7 +1144,7 @@ class QubesVM(qubes.vm.mix.net.NetVMMixin, qubes.vm.BaseVM): | |||||||
|         self.log.info('Creating directory: {0}'.format(self.dir_path)) |         self.log.info('Creating directory: {0}'.format(self.dir_path)) | ||||||
|         os.makedirs(self.dir_path, mode=0o775) |         os.makedirs(self.dir_path, mode=0o775) | ||||||
| 
 | 
 | ||||||
|         self.storage.create_on_disk(source_template) |         self.storage.create(source_template) | ||||||
| 
 | 
 | ||||||
|         self.log.info('Creating icon symlink: {} -> {}'.format( |         self.log.info('Creating icon symlink: {} -> {}'.format( | ||||||
|             self.icon_path, self.label.icon_path)) |             self.icon_path, self.label.icon_path)) | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Bahtiar `kalkin-` Gadimov
						Bahtiar `kalkin-` Gadimov