Create apps dir in moutn_persistent_storage
@@ -1069,8 +1069,6 @@ class Djinn
@options['ec2_url'] = @options['EC2_URL']
end
- Djinn.log_run("mkdir -p #{PERSISTENT_MOUNT_POINT}/apps")
-
Djinn.log_debug("set_parameters: set @options to #{@options}.")
Djinn.log_debug("set_parameters: set @nodes to #{@nodes}.")
@@ -4613,7 +4611,10 @@ HOSTS
# local state.
def mount_persistent_storage
# If we don't have any disk to attach, we are done.
- return unless my_node.disk
+ unless my_node.disk
+ Djinn.log_run("mkdir -p #{PERSISTENT_MOUNT_POINT}/apps")
+ return
+ end
imc = InfrastructureManagerClient.new(@@secret)
begin
